[arch-commits] Commit in lib32-json-c/repos (2 files)

Jan Steffens heftig at archlinux.org
Tue Dec 26 01:17:46 UTC 2017


    Date: Tuesday, December 26, 2017 @ 01:17:45
  Author: heftig
Revision: 276077

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-json-c/repos/multilib-staging-x86_64/
  lib32-json-c/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 276076, lib32-json-c/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: lib32-json-c/repos/multilib-staging-x86_64/PKGBUILD (from rev 276076, lib32-json-c/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2017-12-26 01:17:45 UTC (rev 276077)
@@ -0,0 +1,38 @@
+# $Id$
+# 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>
+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'
+license=(MIT)
+arch=('x86_64')
+depends=('lib32-glibc' 'json-c')
+makedepends=(gcc-multilib libtool-multilib)
+source=('https://github.com/json-c/json-c/archive/json-c-0.13-20171207.tar.gz')
+sha256sums=('26e642456caab38aa9459279b9712ffec52f751e9f46641d28461c244bd6bae6')
+
+build() {
+  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
+  make
+}
+
+check() {
+  cd json-c-json-c-$pkgver-20171207
+  make check
+}
+
+package() {
+  cd json-c-json-c-$pkgver-20171207
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir/usr/include"
+
+  mkdir -p "$pkgdir/usr/share/licenses"
+  ln -s json-c "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list