summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavi da Silva Böger2016-04-06 09:45:00 -0300
committerDavi da Silva Böger2016-04-06 09:45:00 -0300
commitf92846ce2dceaf5079c64a86a12366b6cb13ceb7 (patch)
treecaaa14be74d60e17d1f9fdbf36d1fa912bc85520 /PKGBUILD
parent4ff805b2668a06ff6eda89e2706127335c881427 (diff)
downloadaur-f92846ce2dceaf5079c64a86a12366b6cb13ceb7.tar.gz
Change pkgver() to include last realease tag
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 714cead54d6..9bc629d4485 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Report all package issues to `https://github.com/SShrike/pkgbuilds`
pkgname=gtkd-git
-pkgver=r1258.4b67777
+pkgver=3.3.1.r1.7a4b7d7
pkgrel=1
pkgdesc='D bindings for GTK+ and related libraries.'
url='http://gtkd.org/'
@@ -23,7 +23,7 @@ md5sums=('SKIP')
pkgver() {
cd 'GtkD'
- echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {