summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdam Nielsen2020-08-18 19:37:53 +1000
committerAdam Nielsen2020-08-18 19:37:53 +1000
commit17590e89a1ff121c262133b07ae6a278eeb56ca3 (patch)
tree29c87fb72162b29327b803ab0094dc7cf99dcf27 /PKGBUILD
parentb5c2fa5f8ed649bd974cf1a0328bd531138e4191 (diff)
downloadaur-17590e89a1ff121c262133b07ae6a278eeb56ca3.tar.gz
Add dynamic pkgver and bump epoch to 1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cb157d30f4f..453170b06fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: Adam Nielsen <malvineous@shikadi.net>
pkgname=adplug-git
-pkgver=20160430
+pkgver=0
pkgrel=1
+epoch=1
pkgdesc="AdLib sound player library"
arch=('i686' 'x86_64')
url="http://adplug.github.io"
@@ -19,6 +20,11 @@ prepare() {
autoreconf -fis
}
+pkgver() {
+ cd "$srcdir/adplug"
+ git describe --tags | sed 's/^adplug-//g; s/^v//; s/-/./g'
+}
+
build() {
cd "$srcdir/adplug"
./configure --prefix=/usr --enable-maintainer-mode