summarylogtreecommitdiffstats
path: root/PKGBUILD
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 /PKGBUILD
parent13a7e24ee6e9625fd53f559a19bc251bca8ad1fd (diff)
downloadaur-bae785c0e75da5a39406544af50fdab790613b98.tar.gz
Remove "v" prefix from version calculated by pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
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)"
)
}