summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth2019-11-21 11:47:26 +0000
committerFrank Seifferth2019-11-21 11:47:26 +0000
commit678f6a3cecc769d8c92632eefc381501be8f5777 (patch)
tree6f16b205a00e6f19060bffd62ef29eaf13b54f0b
parent535059ffc12f77596c92fd23ae0580cb3f38bdc2 (diff)
downloadaur-678f6a3cecc769d8c92632eefc381501be8f5777.tar.gz
Update pkgver function
-rw-r--r--PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 50514daf298..14c595231b1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,9 @@ sha256sums=('SKIP'
'164d0042ffe461ca0418709a59be29b433055589b661be4d6555c07df42b383c')
pkgver() {
- echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ cd "$srcdir/abricotine"
+ printf "%s" "$(git describe --long --tags |
+ sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {