summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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