summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohan Radivoj2020-08-01 15:58:39 +0200
committerJohan Radivoj2020-08-01 16:28:14 +0200
commit7cd9abc665468f1e70b9887fb7fe03382aebf226 (patch)
tree04f7aa82576c7541108a7b872b983d75b24c301c /PKGBUILD
downloadaur-7cd9abc665468f1e70b9887fb7fe03382aebf226.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0473b077b64
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: fiskhest <johan+rhkhm at radivoj dot se>
+
+_pkgname=rhkhm
+pkgname=${_pkgname}-git
+pkgver=r47.7f6c68f
+pkgrel=1
+pkgdesc='Parse and fuzzy-find keybinds from sxhkd-configuration - built from latest sources at github'
+arch=('any')
+url="https://github.com/fiskhest/aur-${pkgname}"
+license=('BSD')
+depends=('sxhkd' 'python' 'bash' 'rofi' 'grep')
+makedepends=('git' 'python-setuptools')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("git+https://github.com/fiskhest/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}