summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXorg2016-05-04 19:14:34 +0200
committerXorg2016-05-04 19:14:35 +0200
commit3718f2121a6681469915d1d56361a7ea301c26e6 (patch)
tree92bd7845af794c12cfa432f36e76d7f631d92a3c
parent8ae029c51d57ef0218dc8f07a6285bb85e4d250d (diff)
downloadaur-3718f2121a6681469915d1d56361a7ea301c26e6.tar.gz
Fix pkgver() function
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9671536ce83..d3115c3603c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Tue Apr 26 08:20:11 UTC 2016
+# Wed May 4 17:14:34 UTC 2016
pkgbase = darling-git
pkgdesc = A Darwin/OS X emulation layer for Linux
- pkgver = 1230.63c6f36
+ pkgver = r1231.3f53706
pkgrel = 1
url = http://www.darlinghq.org
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index cac9e6a0c4f..498a1f3d80a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_gitname=darling
pkgname=$_gitname-git
-pkgver=1230.63c6f36
+pkgver=r1231.3f53706
pkgrel=1
pkgdesc="A Darwin/OS X emulation layer for Linux"
arch=('x86_64') # Can only be built on x86_64 systems
@@ -18,7 +18,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
- echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {