diff options
author | Antonin Décimo | 2022-01-08 14:50:31 +0100 |
---|---|---|
committer | Antonin Décimo | 2022-01-08 14:50:31 +0100 |
commit | d80263b79e4c6c95a5c9ea3d9788991ca0afd490 (patch) | |
tree | 7aee2a5572a78f9faf1f83d14235d77d03d79db0 | |
parent | 8675730fc9d5fd37c980efb55e787dea8af33ddb (diff) | |
download | aur-d80263b79e4c6c95a5c9ea3d9788991ca0afd490.tar.gz |
Fix version detection
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Maintainer: Adrian Perez de Castro <aperez@igalia.com> # Maintainer: Antonin Décimo <antonin dot decimo at gmail dot com> pkgname=wlroots-git -pkgver=0.16.0.r35.49c9a5f +pkgver=0.16.0.r5318.59b9518f pkgrel=1 license=(custom:MIT) pkgdesc='Modular Wayland compositor library (git version)' @@ -32,7 +32,7 @@ makedepends=( wayland-protocols xorgproto) source=("${pkgname}::git+${url}.git") -sha512sums=('SKIP') +md5sums=('SKIP') prepare () { arch-meson \ @@ -46,7 +46,8 @@ pkgver () { ( set -o pipefail meson introspect --projectinfo build \ - | awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)"/, ret) {printf "%s",ret[1]}' + | awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)"/, ret) {printf "%s",ret[1]}' + cd "${pkgname}" printf ".r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } |