PKGBUILD: fix breakage after pacman 5.2 upgrade

This commit is contained in:
Daniel Eklöf 2019-10-24 21:20:58 +02:00
parent 4250ae0a01
commit c409e9adf4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 4 deletions

View file

@ -19,8 +19,8 @@ optdepends=('xcb-util-errors: better X error messages')
source=()
pkgver() {
[ -d ../.git ] && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
[ ! -d ../.git ] && head -3 ../meson.build | grep version | cut -d "'" -f 2
cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
head -3 ../meson.build | grep version | cut -d "'" -f 2
}
build() {

View file

@ -19,8 +19,8 @@ depends=(
source=()
pkgver() {
[ -d ../.git ] && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
[ ! -d ../.git ] && head -3 ../meson.build | grep version | cut -d "'" -f 2
cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
head -3 ../meson.build | grep version | cut -d "'" -f 2
}
build() {