summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4bc3ea5ea86..0cf814b078f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=qt5-svg-git
-pkgver=5.15.0_beta1.r3.gae1e354
+pkgver=5.15.1.r7.gfdbe89e
pkgrel=1
pkgdesc="Qt5 SVG module"
arch=('i686' 'x86_64')
@@ -28,10 +28,10 @@ prepare() {
pkgver() {
cd "qtsvg"
- _tag=$(git tag -l --sort -v:refname | sed -n '1,1{s/v//p}')
- _rev=$(git rev-list --count v$_tag..HEAD)
+ _tag=$(git tag -l --sort -v:refname | head -n1)
+ _rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
- printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/-/_/g'
+ printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//;s/-/_/g'
}
build() {