[arch-commits] Commit in json-c/trunk (PKGBUILD)
Jan Steffens
heftig at nymeria.archlinux.org
Mon Jan 28 00:10:28 UTC 2013
Date: Monday, January 28, 2013 @ 01:10:28
Author: heftig
Revision: 176238
Fix package so we can actually build things against it
Modified:
json-c/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-01-27 23:33:03 UTC (rev 176237)
+++ PKGBUILD 2013-01-28 00:10:28 UTC (rev 176238)
@@ -1,10 +1,10 @@
# $Id$
-# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
+# 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=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 @@
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
}
More information about the arch-commits
mailing list