summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2019-08-21 23:59:36 +0200
committerbartus2019-08-21 23:59:36 +0200
commit71e37846a684fd8425a90f65d09add2f450f2688 (patch)
tree68c097a8279b22a3d5cef87da3c2ff8bd3f6472a /PKGBUILD
parent9ec7d6b93216961f23530caa595e9e8698f7f52d (diff)
downloadaur-71e37846a684fd8425a90f65d09add2f450f2688.tar.gz
Fix pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8f1c3d1c935..8449befd1b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=gegl-qfix-git
_pkgname=${pkgname%-qfix-git}
-pkgver=0.4.17.r29.2da17e3
+pkgver=0.4.17.r9768.e1aa95ac1
pkgrel=1
pkgdesc="Graph based image processing framework"
arch=('i686' 'x86_64')
@@ -31,10 +31,11 @@ source=('git+https://gitlab.gnome.org/GNOME/gegl.git')
sha512sums=('SKIP')
pkgver() {
+ cd ${srcdir}/${_pkgname}
printf "%d.%d.%d.r%s.%s" \
- $(grep -Po '^#define GEGL_MAJOR_VERSION \K[0-9]*$' build/config.h) \
- $(grep -Po '^#define GEGL_MINOR_VERSION \K[0-9]*$' build/config.h) \
- $(grep -Po '^#define GEGL_MICRO_VERSION \K[0-9]*$' build/config.h) \
+ $(grep -Po '^#define GEGL_MAJOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
+ $(grep -Po '^#define GEGL_MINOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
+ $(grep -Po '^#define GEGL_MICRO_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \
$(git rev-list --count HEAD) \
$(git rev-parse --short HEAD)
}