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

Maxime Gauduin alucryd at archlinux.org
Mon May 8 20:03:50 UTC 2017


    Date: Monday, May 8, 2017 @ 20:03:49
  Author: alucryd
Revision: 227380

upgpkg: lib32-json-glib 1.2.8-1

Modified:
  lib32-json-glib/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-08 19:56:45 UTC (rev 227379)
+++ PKGBUILD	2017-05-08 20:03:49 UTC (rev 227380)
@@ -3,7 +3,7 @@
 # Contributor: Jameson Pugh <imntreal at gmail.com>
 
 pkgname=lib32-json-glib
-pkgver=1.2.2
+pkgver=1.2.8
 pkgrel=1
 pkgdesc='JSON library built on GLib'
 arch=('x86_64')
@@ -10,28 +10,40 @@
 url='https://wiki.gnome.org/Projects/JsonGlib'
 license=('GPL')
 depends=('json-glib' 'lib32-glib2')
-makedepends=('gobject-introspection' 'python2')
+makedepends=('gobject-introspection' 'meson')
 source=("https://ftp.gnome.org/pub/GNOME/sources/json-glib/${pkgver%.*}/json-glib-${pkgver}.tar.xz")
-sha256sums=('ea128ab52a824fcd06e5448fbb2bd8d9a13740d51c66d445828edba71321a621')
+sha256sums=('fd55a9037d39e7a10f0db64309f5f0265fa32ec962bf85066087b83a2807f40a')
 
+prepare() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
 build(){
-  cd json-glib-${pkgver}
+  cd build
 
   export CC='gcc -m32'
   export CXX='g++ -m32'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
 
-  ./configure \
+  export LANG='en_US.UTF-8'
+  export LANGUAGE='en_US'
+
+  meson ../json-glib-${pkgver} \
+    --buildtype='release' \
     --prefix='/usr' \
-    --libdir='/usr/lib32'
-  make
+    --libdir='/usr/lib32' \
+    --libexecdir='/usr/lib32'
+  ninja
 }
 
 package(){
-  cd json-glib-${pkgver}
+  cd build
 
-  make DESTDIR="${pkgdir}" install
-  rm -rf "${pkgdir}"/usr/{bin,include,share}
+  DESTDIR="${pkgdir}" ninja install
+  rm -rf "${pkgdir}"/usr/{bin,include,lib32/installed-tests,share}
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list