Date: Tuesday, September 20, 2016 @ 11:55:37
  Author: jgc
Revision: 276747

upgpkg: json-glib 1.2.2+4+gd725fb5-1

Modified:
  json-glib/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-20 11:51:59 UTC (rev 276746)
+++ PKGBUILD    2016-09-20 11:55:37 UTC (rev 276747)
@@ -2,7 +2,7 @@
 # Maintainer: Ionut Biru <ib...@archlinux.org>
 
 pkgname=json-glib
-pkgver=1.2.2
+pkgver=1.2.2+4+gd725fb5
 pkgrel=1
 pkgdesc="JSON library built on GLib"
 arch=('i686' 'x86_64')
@@ -9,22 +9,33 @@
 url="https://wiki.gnome.org/Projects/JsonGlib";
 license=('GPL')
 depends=('glib2')
-makedepends=('gobject-introspection')
-source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:3}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('ea128ab52a824fcd06e5448fbb2bd8d9a13740d51c66d445828edba71321a621')
+makedepends=('gobject-introspection' 'git' 'gtk-doc')
+_commit=d725fb511b646521213474bc9dadc4d5a3a1cf9c
+source=("git://git.gnome.org/json-glib#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+  
 build(){
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr
+  cd $pkgname
+  ./configure --prefix=/usr --enable-gtk-doc
   make
 }
 
 package(){
-  cd ${pkgname}-${pkgver}
+  cd $pkgname
   make DESTDIR="${pkgdir}" install
 }
 
 check(){
-  cd "${pkgname}-${pkgver}"
+  cd $pkgname
   make check
 }

Reply via email to