summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ab8589c41f1..f91fc64337a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,29 @@
# Contributor: twa022 <twa022 at gmail dot com>
pkgname=python-system_hotkey
-pkgver=1.0.2
+_pkgver=1.0.2
+pkgver=1.0.2+10+9541587
pkgrel=1
pkgdesc="Python library for system wide hotkeys"
arch=('any')
url="https://github.com/timeyyy/system_hotkey"
license=('BSD')
depends=('python-xcffib')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/timeyyy/${pkgname/python-/}/archive/${pkgver}.tar.gz")
-sha256sums=('4d6e06bf359efecf4bea251e330c852f83b9150f503df28fd94239499f4ff606')
+makedepends=('python-setuptools' 'git')
+source=("${pkgname}::git+https://github.com/timeyyy/system_hotkey")
+sha256sums=('SKIP')
+_release_commit='f30711752d0d4510cda2a213e4ec9c665677e167'
+#source=("${pkgname}-${pkgver}.tar.gz::https://github.com/timeyyy/${pkgname/python-/}/archive/${pkgver}.tar.gz")
+#sha256sums=('4d6e06bf359efecf4bea251e330c852f83b9150f503df28fd94239499f4ff606')
+
+pkgver() {
+# cd "${srcdir}/${pkgname/python-/}-${pkgver}"
+ cd "${srcdir}/${pkgname}"
+ printf "%s+%s+%s" "${_pkgver}" "$(( `git rev-list --count HEAD` - `git rev-list --count ${_release_commit}` ))" "$( git describe --always )"
+}
package() {
- cd "${srcdir}/${pkgname/python-/}-${pkgver}"
+# cd "${srcdir}/${pkgname/python-/}-${pkgver}"
+ cd "${srcdir}/${pkgname}"
python setup.py install --root="${pkgdir}"
}