summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFFY002018-09-14 20:44:41 +0100
committerFFY002018-09-14 20:44:41 +0100
commit56beec20fc2c50a6c6dcdef90cbe939009bb46c6 (patch)
tree909e9659fdfc6dd2048593fde5bac3dd7fbc92cc
parent7dc11539a14a29826a271dfd39f90f94ea38125d (diff)
downloadaur-56beec20fc2c50a6c6dcdef90cbe939009bb46c6.tar.gz
fix pkgver
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1ccd9fa1af3..cb47f259d20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gegl-git
pkgdesc = Graph based image processing framework
- pkgver = 0.4.9.d77fd17e0
+ pkgver = 0.4.9.r8934.cf7eacb75
pkgrel = 1
url = http://www.gegl.org
arch = i686
@@ -31,7 +31,7 @@ pkgbase = gegl-git
optdepends = libraw: raw plugin
optdepends = suitesparse: matting-levin plugin
optdepends = lua: lua plugin
- provides = gegl=0.4.9.d77fd17e0
+ provides = gegl
conflicts = gegl
options = !libtool
source = git+https://gitlab.gnome.org/GNOME/gegl.git
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() {