PKGBUILD: fix breakage after pacman 5.2 upgrade

This commit is contained in:
Daniel Eklöf 2019-10-24 21:21:44 +02:00
parent 6643fe5456
commit 293adbb295
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -8,8 +8,8 @@ makedepends=('meson' 'ninja' 'scdoc' 'python')
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() {