diff options
author | Eric Engestrom | 2021-01-19 11:26:13 +0200 |
---|---|---|
committer | Adrian Perez de Castro | 2021-01-19 11:26:13 +0200 |
commit | f47bfee0a2d9756b403cb8c2f6f05af7231e4c9b (patch) | |
tree | 38c21774eacd4a4a1048a0f03a4c5bf659c5cdb7 | |
parent | d2f989d63516ac7fbff6425bee73df72cb3573b7 (diff) | |
download | aur-aml-git.tar.gz |
Normalize version strings generated by pkgver()
This makes the version numbers generated by pkgver() follow Git tags
and coherent with the version numbers of the aml package.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 3 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = aml-git pkgdesc = Another/Andri's Main Loop - pkgver = r103.972e0c0 + pkgver = 0.2.0 pkgrel = 1 url = https://github.com/any1/aml arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Adrian Perez de Castro <aperez@igalia.com> pkgname=aml-git pkgdesc="Another/Andri's Main Loop" -pkgver=r103.972e0c0 +pkgver=0.2.0 pkgrel=1 url=https://github.com/any1/aml arch=(x86_64) @@ -14,12 +14,7 @@ source=("${pkgname}::git+${url}") sha256sums=(SKIP) pkgver () { - cd "${pkgname}" - ( - set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - ) + git -C "$pkgname" describe --tags --abbrev=10 | sed 's/^v//; s/-/+/; s/-/./' } build () { |