summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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)