summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Nielsen2020-08-18 19:37:53 +1000
committerAdam Nielsen2020-08-18 19:37:53 +1000
commit17590e89a1ff121c262133b07ae6a278eeb56ca3 (patch)
tree29c87fb72162b29327b803ab0094dc7cf99dcf27
parentb5c2fa5f8ed649bd974cf1a0328bd531138e4191 (diff)
downloadaur-17590e89a1ff121c262133b07ae6a278eeb56ca3.tar.gz
Add dynamic pkgver and bump epoch to 1
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD8
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 70a23aa2e95..c305ec4fe55 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,8 @@
-# Generated by mksrcinfo v8
-# Sat Apr 30 05:19:35 UTC 2016
pkgbase = adplug-git
pkgdesc = AdLib sound player library
- pkgver = 20160430
+ pkgver = 0
pkgrel = 1
+ epoch = 1
url = http://adplug.github.io
arch = i686
arch = x86_64
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