diff options
author | Raúl Romero García | 2018-03-01 06:34:44 +0100 |
---|---|---|
committer | Raúl Romero García | 2018-03-01 06:57:35 +0100 |
commit | c680de548bef37aa131da220cd6a38dee6007a2c (patch) | |
tree | 510eeba65b0d1eca5b540427326a774f7ecf17c2 | |
parent | c9aa5827305cd2b906cd3be9096bfa33b4e9c470 (diff) | |
download | aur-c680de548bef37aa131da220cd6a38dee6007a2c.tar.gz |
Updated pkgver generation
getzze says:
The last tag contains a hyphen so pkgver generates an incorrect version number. Modify the sed line with what is advised in the wiki (https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function) makes it work.
-rwxr-xr-x | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgname="gnome-shell-extension-laine-git" pkgdesc="Gnome extension which allows the control of the volume of individual applications as well as a more in depth control of mpris aware applications from a single applet" -pkgver=3.24.r2.g838d89e +pkgver=v3.26.10.r0.gd0c9774 pkgrel=1 arch=(any) url="https://github.com/johnhoran/Laine" @@ -14,7 +14,7 @@ conflicts+=($_gitname) pkgver() { cd ${_gitname:-$pkgname} - git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' [ ${PIPESTATUS[0]} -ne 0 ] && \ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } |