diff options
author | Shinyzenith | 2022-02-08 22:51:19 +0530 |
---|---|---|
committer | Shinyzenith | 2022-02-08 22:51:19 +0530 |
commit | b66c8a1c2997df39c8b85a61277e856a56ca452d (patch) | |
tree | 0a8010e20b5619d26b3dc1e4ebdb86025aab2887 | |
download | aur-b66c8a1c2997df39c8b85a61277e856a56ca452d.tar.gz |
Upload pkgbuild
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..268745891067 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = swhkd-git + pkgdesc = A display server independent hotkey daemon inspired by sxhkd. + pkgver = 1 + pkgrel = 1 + url = https://github.com/waycrate/swhkd + arch = x86_64 + license = BSD + makedepends = rustup + makedepends = make + makedepends = git + depends = polkit + conflicts = swhkd-musl-git + source = swhkd::git+https://github.com/waycrate/swhkd + sha256sums = SKIP + +pkgname = swhkd-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5d64f4d2be24 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Aakash Sharma <aakashsensharma@gmail.com> +pkgname='swhkd-git' +_pkgname="swhkd" +pkgver=1 +pkgrel=1 +arch=('x86_64') +url="https://github.com/waycrate/swhkd" +pkgdesc="A display server independent hotkey daemon inspired by sxhkd." +license=('BSD') +depends=('polkit') +makedepends=('rustup' 'make' 'git') +conflicts=('swhkd-musl-git') +source=("$_pkgname::git+https://github.com/waycrate/$_pkgname") +sha256sums=('SKIP') + +build(){ + cd "$_pkgname" + make setup + make glibc +} + +package() { + cd "$_pkgname" + install -Dm 755 ./bin/swhkd "$pkgdir/usr/bin/swhkd" + install -Dm 755 ./bin/swhks "$pkgdir/usr/bin/swhks" + install -Dm 644 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules" +} + +pkgver() { + cd $_pkgname + echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} |