From a8bf3e59c67449b6ef0e93a937a8891367ef0d84 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Tue, 28 Jul 2020 16:09:05 +0300 Subject: [PATCH] Add license and PKGBUILD --- Cargo.lock | 2 +- LICENSE-WTFPL | 13 +++++++++++++ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 LICENSE-WTFPL create mode 100644 PKGBUILD diff --git a/Cargo.lock b/Cargo.lock index 103d7de..1faaecc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -523,7 +523,7 @@ dependencies = [ [[package]] name = "sway-layout" -version = "0.1.0" +version = "0.2.0" dependencies = [ "async-std", "failure", diff --git a/LICENSE-WTFPL b/LICENSE-WTFPL new file mode 100644 index 0000000..456c488 --- /dev/null +++ b/LICENSE-WTFPL @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..88feb8e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Alexandr Bogomyakov (ultradesu) + +pkgname=swkb +pkgver=0.2.0 +pkgrel=1 +pkgdesc="swkb" +url="https://github.com/house-of-vanity/swkb.git" +arch=($CARCH) +license=(WTFPL custom) +depends=(sway) +makedepends=(cargo git) +source=("git+https://github.com/house-of-vanity/$pkgname") +sha512sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long --tags | awk -F '-' '{print $1}'| sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/$pkgname" + cargo fetch --target $CARCH-unknown-linux-gnu +} + +build() { + cd "$srcdir/$pkgname" + cargo build --release --frozen --all-targets --all-features +} + +package() { + cd "$srcdir/$pkgname" + install -Dt "$pkgdir/usr/bin" target/release/$pkgname +}