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
This commit is contained in:
parent
1acb4e04ac
commit
41de202da7
4
.SRCINFO
4
.SRCINFO
@ -1,7 +1,7 @@
|
||||
pkgbase = wlroots-git
|
||||
pkgdesc = Modular Wayland compositor library
|
||||
pkgver = r1924.2e7d8862
|
||||
pkgrel = 1
|
||||
pkgver = r1924.2e7d886
|
||||
pkgrel = 2
|
||||
url = https://github.com/swaywm/wlroots
|
||||
arch = x86_64
|
||||
license = custom:MIT
|
||||
|
6
PKGBUILD
6
PKGBUILD
@ -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)"
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user