summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19c428dadc8..8770439915b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = qt5-svg-git
pkgdesc = Qt5 SVG module
- pkgver = 5.15.0_beta1.r3.gae1e354
+ pkgver = 5.15.1.r7.gfdbe89e
pkgrel = 1
url = https://www.qt.io/
arch = i686
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() {