summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew T Hoare2017-07-30 15:20:11 +0100
committerMatthew T Hoare2017-07-30 15:20:11 +0100
commit114f41463ee1d3a9dc09558d8a77e5ad3be0a882 (patch)
tree3c445c00500d3ca331f994c926835432bebc922f
parente7665e9a03b47bd9cd72cb4b016f7dbde41fa91d (diff)
downloadaur-114f41463ee1d3a9dc09558d8a77e5ad3be0a882.tar.gz
Added pkgver().
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 6 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4beb953e23b..5b7ea469411 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sun Jul 30 14:05:52 UTC 2017
+# Sun Jul 30 14:20:00 UTC 2017
pkgbase = mksh-static-git
pkgdesc = The MirBSD Korn Shell - an enhanced version of the public domain ksh
pkgver = 55
diff --git a/PKGBUILD b/PKGBUILD
index 40466a76f09..8b2b2c71a1a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,6 +21,11 @@ source=('mksh::git+http://github.com/MirBSD/mksh#branch=master'
md5sums=('SKIP'
'SKIP')
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
check() {
cd "$srcdir/$_pkgname"
./test.sh