summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLin UX2017-05-30 18:50:49 +0800
committerLin UX2017-05-30 18:50:49 +0800
commit90acb32c566d5724ff256e749a6da63021f842b4 (patch)
tree325514c3f7dc914107e1716a1b3ee0505c52396d
parent4d0a31be277a0b720ab5ff0d99cfcd0d45099c9f (diff)
downloadaur-90acb32c566d5724ff256e749a6da63021f842b4.tar.gz
fix version
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4beb98a19e2..9997675235c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ source=("git://$_pkgname.git.sourceforge.net/gitroot/$_pkgname/$_pkgname")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
- echo $(awk -F"['+]" '/version/ {print $2} ' src/version.py).$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ echo $(awk -F"['+]" '/version/ {print $2} ' src/version.py | grep -o "^[^-]*").$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$srcdir/$_pkgname"