summaryrefslogtreecommitdiff
path: root/extra/json-c
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-29 00:06:25 -0800
committerroot <root@rshg054.dnsready.net>2013-01-29 00:06:25 -0800
commit2cb7f65fb24926493d457f6931e421e27aa629da (patch)
treedfd419375945457b6b6dd74c280812f8e5533743 /extra/json-c
parent1b9f6dc846379470b620b5dbb9d4d7acd1de148c (diff)
Tue Jan 29 00:06:25 PST 2013
Diffstat (limited to 'extra/json-c')
-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
}