summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Griffis2016-03-24 18:30:07 -0400
committerPatrick Griffis2016-03-24 18:30:07 -0400
commit477c5b91cc3aacf03c8a75ff99fb9d163f1a4ef5 (patch)
tree00dcdde1e167b23dc4f6663611f79180f7cdd9d3
parenta4d95b23415a50aa153aa9ca07d3a00ef248a484 (diff)
downloadaur-477c5b91cc3aacf03c8a75ff99fb9d163f1a4ef5.tar.gz
Improve getting version
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6239e273ccf..bc5be533a12 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = glade-git
pkgdesc = User interface builder for GTK+ and GNOME.
- pkgver = 3.19.0.r23.g7524d14
+ pkgver = 3.20.0.r211.g74b21b3
pkgrel = 1
url = http://glade.gnome.org/
install = glade.install
diff --git a/PKGBUILD b/PKGBUILD
index d76834462b0..9d4287b8266 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=glade-git
_gitname=glade
-pkgver=3.19.0.r23.g7524d14
+pkgver=3.20.0.r211.g74b21b3
pkgrel=1
pkgdesc="User interface builder for GTK+ and GNOME."
provides=('glade')
@@ -24,7 +24,10 @@ sha256sums=(SKIP)
pkgver() {
cd "$_gitname"
- git describe | sed 's/^GLADE_//; s/_/./g; s/-/.r/; s/-/./'
+ _minor_ver=`pcregrep -o1 '^m4_define\(glade_minor_version, (\d+)\)$' ./configure.ac`
+ _micro_ver=`pcregrep -o1 '^m4_define\(glade_micro_version, (\d+)\)$' ./configure.ac`
+ _rev=`git describe | sed 's/^GLADE[^-]*-/r/; s/-/./'`
+ echo "3.$_minor_ver.$_micro_ver.$_rev"
}
build() {