summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTed Alff2019-12-23 09:51:57 -0500
committerTed Alff2019-12-23 09:51:57 -0500
commit9318a0ddb019229ee2b96931d43791a85f5137ba (patch)
tree08521f91763255608f187a18f63982f61034a54f /PKGBUILD
parenta7682cf9baa9f1f72c051bd914d38f28705c5c01 (diff)
downloadaur-python-system_hotkey.tar.gz
Update to latest git. The only AUR package that depends on this (superpaper) requires the unreleased 1.0.3 version
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}"
}