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

Jan Steffens heftig at archlinux.org
Tue Dec 26 01:15:53 UTC 2017


    Date: Tuesday, December 26, 2017 @ 01:15:52
  Author: heftig
Revision: 276076

0.13-1

Modified:
  lib32-json-c/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-26 01:09:33 UTC (rev 276075)
+++ PKGBUILD	2017-12-26 01:15:52 UTC (rev 276076)
@@ -2,22 +2,20 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 # Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
 # Contributor: congyiwu <congyiwu AT gmail DOT com>
-_pkgbasename=json-c
-pkgname=lib32-$_pkgbasename
-pkgver=0.12.1
+pkgname=lib32-json-c
+pkgver=0.13
 pkgrel=1
-pkgdesc="A JSON implementation in C (32-bit)"
-url="https://github.com/json-c/json-c/wiki"
+pkgdesc='A JSON implementation in C (32-bit)'
+url='https://github.com/json-c/json-c/wiki'
 license=(MIT)
-arch=(x86_64)
-depends=(lib32-glibc $_pkgbasename)
+arch=('x86_64')
+depends=('lib32-glibc' 'json-c')
 makedepends=(gcc-multilib libtool-multilib)
-options=(!libtool !makeflags)
-source=(https://s3.amazonaws.com/${_pkgbasename}_releases/releases/$_pkgbasename-${pkgver}.tar.gz)
-sha256sums=('2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123')
+source=('https://github.com/json-c/json-c/archive/json-c-0.13-20171207.tar.gz')
+sha256sums=('26e642456caab38aa9459279b9712ffec52f751e9f46641d28461c244bd6bae6')
 
 build() {
-  cd $_pkgbasename-$pkgver
+  cd json-c-json-c-$pkgver-20171207
   export CC="gcc -m32" PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
   CFLAGS="$CFLAGS -Wno-error"
   ./configure --prefix=/usr --disable-static --libdir=/usr/lib32
@@ -24,12 +22,17 @@
   make
 }
 
+check() {
+  cd json-c-json-c-$pkgver-20171207
+  make check
+}
+
 package() {
-  cd $_pkgbasename-$pkgver
+  cd json-c-json-c-$pkgver-20171207
   make DESTDIR="$pkgdir" install
 
   rm -r "$pkgdir/usr/include"
 
   mkdir -p "$pkgdir/usr/share/licenses"
-  ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s json-c "$pkgdir/usr/share/licenses/$pkgname"
 }



More information about the arch-commits mailing list