summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Tas2018-06-09 14:46:31 +0200
committerSimon Tas2018-06-09 14:46:31 +0200
commitf3bf8724c8d581fda71e9d8b6cfdf59ce8b645d8 (patch)
tree6cc609c92895c392ebbaae0de94cda2d27a278db
parent00ce3eb64bd0751631de7aadb8a9bb5f1e690e89 (diff)
downloadaur-python-romkan-git.tar.gz
added pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ee2cadd3dc..c48c1000b12 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-romkan-git
pkgdesc = a Romaji/Kana conversion library for Python
- pkgver = 0.2.1
+ pkgver = r24.c82dc16
pkgrel = 1
url = https://github.com/soimort/python-romkan
arch = any
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