summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2020-05-27 14:44:41 +0200
committerbartus2020-05-27 14:44:41 +0200
commit1290b176c054dbd9b47b10cc1e600ed3078767d0 (patch)
tree636c18d0614938039bcb865c276730bf24474966
parent0f55938d93dd87e603dca1d7946fea7d34796d8a (diff)
downloadaur-1290b176c054dbd9b47b10cc1e600ed3078767d0.tar.gz
Update PKGBUILD.in template.
-rw-r--r--PKGBUILD.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/PKGBUILD.in b/PKGBUILD.in
index e05a3370393..74344f5b558 100644
--- a/PKGBUILD.in
+++ b/PKGBUILD.in
@@ -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|tr '\0' '\n') \
$(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