summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2014-03-18 11:05:26 -0500
committerDoug Newgard2014-03-18 11:05:26 -0500
commit721c2d42fe192d4348481c8f4773bcd3357e7eba (patch)
tree8427f4e6bd51c882e74275aab1f66fbfb7b09c60
parentd516fa71af7070a4a03a1eb0ed3284fb592de063 (diff)
downloadaur-721c2d42fe192d4348481c8f4773bcd3357e7eba.tar.gz
Update pkgver function
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3679e129411..65524a101f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,15 +31,14 @@ pkgver() {
cd "$srcdir/$_pkgname"
for _i in v_maj v_min v_mic; do
- local v_ver=$v_ver.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
+ local v_ver=${v_ver#.}.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
done
- v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
+ v_ver=$(awk -F , -v v_ver=$v_ver '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
-
build() {
cd "$srcdir/$_pkgname"