summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2020-02-28 20:40:28 +0100
committerbartus2020-02-28 20:40:28 +0100
commitcff60007e08eff9bc584d5a847669bc1e1561494 (patch)
treeb82bde4196f18052c3181350c05fd1256b3e1bef /PKGBUILD
parente6e182d4f154c6bf9ccf37caf28e1adb80e6cf51 (diff)
downloadaur-cff60007e08eff9bc584d5a847669bc1e1561494.tar.gz
Update pkgver() to work without prepare().
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 05ec9a562a2..305d90bed89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=gegl
pkgname="${_pkgname}-git"
-pkgver=0.4.23.r9856.e73cddb51
+pkgver=0.4.23.r9860.6f2a60b92
pkgrel=1
pkgdesc="Graph based image processing framework"
arch=('i686' 'x86_64')
@@ -51,10 +51,8 @@ prepare() {
pkgver() {
cd ${srcdir}/${_pkgname}
- printf "%d.%d.%d.r%s.%s" \
- $(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) \
+ printf "%s.r%s.%s" \
+ $(grep -ozP "(?s)^project\('gegl'.*?version: *'\K[\d.]*" meson.build) \
$(git rev-list --count HEAD) \
$(git rev-parse --short HEAD)
}
@@ -68,3 +66,4 @@ package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
}
+# vim: tabstop=2 expandtab