summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStorm Dragon2018-05-10 13:44:33 -0400
committerStorm Dragon2018-05-10 13:44:33 -0400
commit427b54be834a75d91526c0351714d1131bed6e21 (patch)
treefc3eeb1eb8ddcfcab4727871b85c80468e24042d
parent7bb5a9b70fad3cfdb9304b3ebc1586f284ccfcb6 (diff)
downloadaur-427b54be834a75d91526c0351714d1131bed6e21.tar.gz
Fixed empty version string.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cea5f333c6d..9bca5a2a810 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu May 10 17:38:47 UTC 2018
+# Thu May 10 17:44:18 UTC 2018
pkgbase = talking-clock-git
pkgdesc = Highly configurable clock written in bash with soundpack and voice options.
pkgver = v15.0.r5.3b6827e
diff --git a/PKGBUILD b/PKGBUILD
index 7d3101f85b7..d70b4c15a7c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,10 +27,10 @@ md5sums=("SKIP")
pkgver()
{
- cd "${_pkgname}"
- printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
-}
-
+ cd "$_pkgname"
+ git shortlog | head -n 1 | tr -Cd "[:digit:]"
+}
+
package()
{
cd "$_pkgname"