summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta2014-05-14 13:29:14 +0200
committerJan Cholasta2014-05-14 13:29:14 +0200
commit7c70fcb8b1ab2cb5e0cf3e51e06fec060ce095dd (patch)
tree7947ba398bab54ae98f98f5c8956f1bd255cc1b7
parent342b198a33f05e88895ee868bb14ad074a8cc8c6 (diff)
downloadaur-7c70fcb8b1ab2cb5e0cf3e51e06fec060ce095dd.tar.gz
Use git describe for pkgver in git packages.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72a6d8af3b8..e053cbc0a66 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gzdoom-git
pkgdesc = Doom source port based on ZDoom with an OpenGL renderer (git version).
- pkgver = 20130829
+ pkgver = 1.9pre.r605.gcd6d653
pkgrel = 1
url = http://www.osnanet.de/c.oelckers/gzdoom/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index d4c40eedde3..4d135950155 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ if [[ "$CARCH" == x86_64 ]]; then
fi
pkgname=gzdoom-git
-pkgver=20130829
+pkgver=1.9pre.r605.gcd6d653
pkgrel=1
pkgdesc="Doom source port based on ZDoom with an OpenGL renderer (git version)."
arch=('i686' 'x86_64')
@@ -50,7 +50,8 @@ _libdir=/usr/lib/gzdoom
_sharedir=/usr/share/games/gzdoom
pkgver() {
- date +%Y%m%d
+ cd gzdoom
+ git describe --long --tags --match 'G*' | sed -r 's/^G//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {