summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2019-08-23 10:04:06 +0200
committerbartus2019-08-23 10:04:06 +0200
commita89006a691e9d509d045ac62bfeecaa2116f2a81 (patch)
tree309165954da946a1181831fb8fbd3b3470f8cda4 /PKGBUILD
parentc6b3cd57804b77be12bffadc66386fedf80f85b1 (diff)
downloadaur-babl-qfix-git.tar.gz
Fix pkgver() again :/
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6c68931006d..c3936489f84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
_pkgname=babl
pkgname="${_pkgname}-qfix-git"
-pkgver=0.1.71.r27.5801e2b
+pkgver=0.1.71.r1597.cff46ae
pkgrel=1
pkgdesc="babl is a dynamic, any to any, pixel format translation library."
arch=('x86_64')
@@ -31,10 +31,11 @@ prepare() {
}
pkgver() {
+ cd ${srcdir}/${_pkgname}
printf "%d.%d.%d.r%s.%s" \
- $(grep -Po '^#define BABL_MAJOR_VERSION \K[0-9]*$' build/config.h) \
- $(grep -Po '^#define BABL_MINOR_VERSION \K[0-9]*$' build/config.h) \
- $(grep -Po '^#define BABL_MICRO_VERSION \K[0-9]*$' build/config.h) \
+ $(grep -Po '^#define BABL_MAJOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
+ $(grep -Po '^#define BABL_MINOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
+ $(grep -Po '^#define BABL_MICRO_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
$(git rev-list --count HEAD) \
$(git rev-parse --short HEAD)
}