[arch-commits] Commit in json-glib/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Mon Mar 13 17:46:37 UTC 2017


    Date: Monday, March 13, 2017 @ 17:46:37
  Author: heftig
Revision: 290796

1.2.6+7+gf98d547-1

Modified:
  json-glib/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-13 17:29:57 UTC (rev 290795)
+++ PKGBUILD	2017-03-13 17:46:37 UTC (rev 290796)
@@ -2,16 +2,16 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=json-glib
-pkgver=1.2.2+4+gd725fb5
+pkgver=1.2.6+7+gf98d547
 pkgrel=1
 pkgdesc="JSON library built on GLib"
-arch=('i686' 'x86_64')
 url="https://wiki.gnome.org/Projects/JsonGlib"
-license=('GPL')
-depends=('glib2')
-makedepends=('gobject-introspection' 'git' 'gtk-doc')
-_commit=d725fb511b646521213474bc9dadc4d5a3a1cf9c
-source=("git://git.gnome.org/json-glib#commit=$_commit")
+arch=(i686 x86_64)
+license=(GPL)
+depends=(glib2)
+makedepends=(gobject-introspection git gtk-doc meson)
+_commit=f98d547d78ad294894cf8dfff5b0de1aa550bea7  # master
+source=("git+https://git.gnome.org/browse/json-glib#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
@@ -20,22 +20,24 @@
 }
 
 prepare() {
+  mkdir build
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
-  
-build(){
-  cd $pkgname
-  ./configure --prefix=/usr --enable-gtk-doc
-  make
+
+build() {
+  cd build
+  export LANG=en_US.UTF-8
+  meson --prefix=/usr --buildtype=release ../$pkgname --libexecdir=/usr/lib \
+    -Denable-gtk-doc=true -Denable-man=true
+  ninja
 }
 
-package(){
-  cd $pkgname
-  make DESTDIR="${pkgdir}" install
+check() {
+  cd build
+  ninja test
 }
 
-check(){
-  cd $pkgname
-  make check
+package() {
+  cd build
+  DESTDIR="$pkgdir" ninja install
 }



More information about the arch-commits mailing list