summarylogtreecommitdiffstats
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
parent4ff805b2668a06ff6eda89e2706127335c881427 (diff)
downloadaur-f92846ce2dceaf5079c64a86a12366b6cb13ceb7.tar.gz
Change pkgver() to include last realease tag
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8790bfaf4fc..febd410b034 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sat Apr 2 05:05:43 UTC 2016
+# Wed Apr 6 12:44:08 UTC 2016
pkgbase = gtkd-git
pkgdesc = D bindings for GTK+ and related libraries.
- pkgver = r1258.4b67777
+ pkgver = 3.3.1.r1.7a4b7d7
pkgrel = 1
url = http://gtkd.org/
arch = x86_64
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() {