summaryrefslogtreecommitdiff
path: root/extra/json-c/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/json-c/PKGBUILD')
-rw-r--r--extra/json-c/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/extra/json-c/PKGBUILD b/extra/json-c/PKGBUILD
index 2b8174664..0c82ec3fc 100644
--- a/extra/json-c/PKGBUILD
+++ b/extra/json-c/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 176084 2013-01-27 11:24:26Z ioni $
-# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# $Id: PKGBUILD 176239 2013-01-28 00:11:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: congyiwu <congyiwu AT gmail DOT com>
pkgname=json-c
pkgver=0.10
-pkgrel=1
+pkgrel=2
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
license=("MIT")
@@ -15,7 +15,15 @@ md5sums=('a4edc79410eb894f08d7d52ca9f88732')
options=(!libtool)
build() {
cd $pkgname-$pkgver
- ./configure --prefix=/usr
+
+ ## from http://pkgs.fedoraproject.org/cgit/json-c.git/tree/json-c.spec
+ # Hack to get json_object_iterator.c compiled
+ sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
+ -e 's/json_object.h/json_object.h json_object_iterator.h/' \
+ -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \
+ -i Makefile.in
+
+ ./configure --prefix=/usr --disable-static
make
}