summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2019-01-07 18:16:35 +0200
committerAdrian Perez de Castro2019-01-07 18:16:35 +0200
commitbae785c0e75da5a39406544af50fdab790613b98 (patch)
tree573648d960fdf6d5147ab3b41deb9cffb0a5e934
parent13a7e24ee6e9625fd53f559a19bc251bca8ad1fd (diff)
downloadaur-bloaty-git.tar.gz
Remove "v" prefix from version calculated by pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f3e2659e1f..10240a79030 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bloaty-git
pkgdesc = A size profiler for binaries
- pkgver = v1.0.r2.gfeaca23
+ pkgver = 1.0.r2.gfeaca23
pkgrel = 1
url = https://github.com/google/bloaty
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 2abd3a83de4..91eb3a0b394 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
# Contributor: Yamakaky <yamakaky@yamaworld.fr>
pkgname=bloaty-git
-pkgver=v1.0.r2.gfeaca23
+pkgver=1.0.r2.gfeaca23
pkgrel=1
pkgdesc='A size profiler for binaries'
arch=(x86_64 i686)
@@ -17,7 +17,7 @@ pkgver () {
cd "${pkgname}"
(
set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ git describe --long --tags 2>/dev/null | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}