diff options
author | CrocoDuck | 2016-03-10 21:04:49 +0000 |
---|---|---|
committer | CrocoDuck | 2016-03-10 21:04:49 +0000 |
commit | 063b97d1b8f168817ae0c3b4b21385414464cef7 (patch) | |
tree | a032fc8803e20e4cad055c50ea4a77379eeb3f2e | |
parent | 5d69635a31cda2dfe6959472385913638b6ed965 (diff) | |
download | aur-063b97d1b8f168817ae0c3b4b21385414464cef7.tar.gz |
Added pkgver() function
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = realtimeconfigquickscan-git pkgdesc = Linux configuration checker for systems to be used for real-time audio pkgver = r16.c362fbb - pkgrel = 2 + pkgrel = 3 url = https://github.com/raboof/realtimeconfigquickscan arch = any license = GPL @@ -3,7 +3,7 @@ pkgname=realtimeconfigquickscan-git pkgver=r16.c362fbb -pkgrel=2 +pkgrel=3 pkgdesc="Linux configuration checker for systems to be used for real-time audio" arch=('any') url="https://github.com/raboof/realtimeconfigquickscan" @@ -17,6 +17,11 @@ source=("${pkgname%-*}"::"git://github.com/raboof/realtimeconfigquickscan" 'QuickScan') md5sums=('SKIP' '45847f5cbc4880b6e724fa4fafbdc3c7' '8e3ff9238a56c66fb2f50f4f36259a95') +pkgver() { + cd "${pkgname%-*}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { cd ${pkgname%-*} # Install Script Files: |