summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFFY002018-09-14 20:44:41 +0100
committerFFY002018-09-14 20:44:41 +0100
commit56beec20fc2c50a6c6dcdef90cbe939009bb46c6 (patch)
tree909e9659fdfc6dd2048593fde5bac3dd7fbc92cc /PKGBUILD
parent7dc11539a14a29826a271dfd39f90f94ea38125d (diff)
downloadaur-56beec20fc2c50a6c6dcdef90cbe939009bb46c6.tar.gz
fix pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4ff1438b74b..b2f9c787ab1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=gegl-git
_pkgname=${pkgname%-git}
-pkgver=0.4.9.d77fd17e0
+pkgver=0.4.9.r8934.cf7eacb75
pkgrel=1
pkgdesc="Graph based image processing framework"
arch=('i686' 'x86_64')
@@ -24,7 +24,7 @@ optdepends=('openexr: for using the openexr plugin'
'libraw: raw plugin'
'suitesparse: matting-levin plugin'
'lua: lua plugin')
-provides=("gegl=$pkgver")
+provides=('gegl')
conflicts=('gegl')
options=(!libtool)
source=('git+https://gitlab.gnome.org/GNOME/gegl.git')
@@ -33,7 +33,10 @@ sha512sums=('SKIP')
pkgver() {
cd $_pkgname
- echo $(cat configure.ac | grep '^m4_define(\[gegl_.*_version\], \[[0-9]*\])' | tr -d '\n' | sed -e 's|^m4_define(\[gegl_major_version\], \[||' -e 's|\])m4_define(\[gegl_minor_version\], \[|.|' -e 's|\])m4_define(\[gegl_micro_version\], \[|.|' -e 's|\])|\n|').$(git log --pretty=format:'%h' -n 1)
+ printf "%s.r%s.%s" \
+ $(cat configure.ac | grep '^m4_define(\[gegl_.*_version\], \[[0-9]*\])' | tr -d '\n' | sed -e 's|^m4_define(\[gegl_major_version\], \[||' -e 's|\])m4_define(\[gegl_minor_version\], \[|.|' -e 's|\])m4_define(\[gegl_micro_version\], \[|.|' -e 's|\])|\n|') \
+ $(git rev-list --count HEAD) \
+ $(git rev-parse --short HEAD)
}
prepare() {