diff options
author | Jaroslav Lichtblau | 2016-09-24 17:47:12 +0200 |
---|---|---|
committer | Jaroslav Lichtblau | 2016-09-24 17:47:12 +0200 |
commit | d4a11675dd700fae0bc4c62602e72b04c4653221 (patch) | |
tree | e5cf49de2e496ff20fc22ba322abff26fe861723 | |
parent | 76d04f11ed9e515d6737de4457011b98942ca4a6 (diff) | |
download | aur-d4a11675dd700fae0bc4c62602e72b04c4653221.tar.gz |
git pkgver function added
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Mon May 16 09:12:53 UTC 2016 +# Sat Sep 24 15:47:09 UTC 2016 pkgbase = datovka-git pkgdesc = GUI application allowing access to a 'Databox' - an electronic communication interface endorsed by the Czech government - pkgver = 4.6.0 + pkgver = v4.6.1.r0.g87416a2 pkgrel = 1 url = https://gitlab.labs.nic.cz/labs/qdatovka arch = i686 @@ -1,7 +1,7 @@ # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> pkgname=datovka-git -pkgver=4.6.0 +pkgver=v4.6.1.r0.g87416a2 pkgrel=1 pkgdesc="GUI application allowing access to a 'Databox' - an electronic communication interface endorsed by the Czech government" arch=('i686' 'x86_64') @@ -14,6 +14,11 @@ provides=('datovka') source=(git+https://gitlab.labs.nic.cz/labs/qdatovka.git) md5sums=('SKIP') +pkgver() { + cd qdatovka + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd qdatovka |