summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph2019-07-24 11:57:18 +0200
committerChristoph2019-07-24 11:57:18 +0200
commitfbcb4697968115b9b7dd509de3c3e78efd781c0b (patch)
treef03298f5eed873749f2834356559035da7fca5e9
parent338a74fe8b9ead12773ca4aa48ce8a3f35cd3853 (diff)
downloadaur-fbcb4697968115b9b7dd509de3c3e78efd781c0b.tar.gz
addeed git versioning
-rw-r--r--PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ad22f03f68b5..ca003d94b9cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,12 @@
# Contributor: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
pkgname=ferdi-git
-_pkgver=5.2.0
-pkgver=${_pkgver//-/_}
+# _pkgver=5.2.0
+# pkgver=${_pkgver//-/_}
+pkgver() {
+ cd "$pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
pkgrel=1
pkgdesc='Free messaging app for services like WhatsApp, Slack, Messenger and many more. fork removing the non-skippable app delay frequently inviting you to buy a licence'
arch=(x86_64 i686)