summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD32
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..283f89f5f90
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = rhkhm-git
+ pkgdesc = Parse and fuzzy-find keybinds from sxhkd-configuration - built from latest sources at github
+ pkgver = r47.7f6c68f
+ pkgrel = 1
+ url = https://github.com/fiskhest/aur-rhkhm-git
+ arch = any
+ license = BSD
+ makedepends = git
+ makedepends = python-setuptools
+ depends = sxhkd
+ depends = python
+ depends = bash
+ depends = rofi
+ depends = grep
+ provides = rhkhm
+ conflicts = rhkhm
+ source = git+https://github.com/fiskhest/rhkhm.git
+ md5sums = SKIP
+
+pkgname = rhkhm-git
+
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"
+}