diff options
author | Adam Nielsen | 2020-08-18 19:37:53 +1000 |
---|---|---|
committer | Adam Nielsen | 2020-08-18 19:37:53 +1000 |
commit | 17590e89a1ff121c262133b07ae6a278eeb56ca3 (patch) | |
tree | 29c87fb72162b29327b803ab0094dc7cf99dcf27 | |
parent | b5c2fa5f8ed649bd974cf1a0328bd531138e4191 (diff) | |
download | aur-17590e89a1ff121c262133b07ae6a278eeb56ca3.tar.gz |
Add dynamic pkgver and bump epoch to 1
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -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 @@ -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 |