diff options
author | Adrian Perez de Castro | 2018-02-21 18:30:27 +0000 |
---|---|---|
committer | Adrian Perez de Castro | 2018-02-21 18:30:27 +0000 |
commit | 41de202da75b1624536f2bf23db13ed6482a17d2 (patch) | |
tree | 1aaf24b3c2486f677ef1c706f9d526e47c693d85 /PKGBUILD | |
parent | 1acb4e04aca84ea868dd9f238202abdcd56aee89 (diff) | |
download | aur-41de202da75b1624536f2bf23db13ed6482a17d2.tar.gz |
Fix pkgver() function and use the one from Arch Wiki
This changes the pkgver() function to use exactly the version suggested
in the Arch Wiki:
https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Maintainer: Adrian Perez de Castro <aperez@igalia.com> pkgname='wlroots-git' -pkgver=r1924.2e7d8862 -pkgrel=1 +pkgver=r1924.2e7d886 +pkgrel=2 license=('custom:MIT') pkgdesc='Modular Wayland compositor library' url='https://github.com/swaywm/wlroots' @@ -20,7 +20,7 @@ pkgver () { cd "${pkgname}" ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^version\.//' || + 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)" ) } |