summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatheus Gabriel Werny de Lima2021-02-26 09:16:51 +0100
committerMatheus Gabriel Werny de Lima2021-02-26 09:16:51 +0100
commit70a38402e598165875aab707c3932fd1cfd61901 (patch)
treebd6d51722c72198adea15bd3e235a45ccf5ed84d
parent23e69e784494254c7c45a7d725a3504f37822dd5 (diff)
downloadaur-70a38402e598165875aab707c3932fd1cfd61901.tar.gz
Added function pkgver().
-rwxr-xr-xPKGBUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ea719206d1f..6fa56aedca9 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,6 +28,12 @@ noextract=()
md5sums=("SKIP")
validpgpkeys=()
+pkgver()
+{
+ cd ${srcdir}/${\_pkgname}/
+ git describe --tags --abbrev=0
+}
+
build()
{
cd ${srcdir}/${_pkgname}/