summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJaroslav Lichtblau2016-09-24 17:47:12 +0200
committerJaroslav Lichtblau2016-09-24 17:47:12 +0200
commitd4a11675dd700fae0bc4c62602e72b04c4653221 (patch)
treee5cf49de2e496ff20fc22ba322abff26fe861723 /PKGBUILD
parent76d04f11ed9e515d6737de4457011b98942ca4a6 (diff)
downloadaur-d4a11675dd700fae0bc4c62602e72b04c4653221.tar.gz
git pkgver function added
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7bd2d3fee7da..47c748f2d98b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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