summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Tas2018-06-09 14:46:31 +0200
committerSimon Tas2018-06-09 14:46:31 +0200
commitf3bf8724c8d581fda71e9d8b6cfdf59ce8b645d8 (patch)
tree6cc609c92895c392ebbaae0de94cda2d27a278db /PKGBUILD
parent00ce3eb64bd0751631de7aadb8a9bb5f1e690e89 (diff)
downloadaur-python-romkan-git.tar.gz
added pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9d345ff94a6..28a015ebde9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Simon Tas <simon.tas.st@gmail.com>
pkgname="python-romkan-git"
_pkgname="python-romkan"
-pkgver=0.2.1
+pkgver=r24.c82dc16
pkgrel=1
pkgdesc="a Romaji/Kana conversion library for Python"
arch=('any')
@@ -14,6 +14,11 @@ provides=('python-romkan')
source=("git+https://github.com/soimort/${_pkgname}")
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