summaryrefslogtreecommitdiff
path: root/extra/json-c
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-12 00:06:13 -0700
committerroot <root@rshg054.dnsready.net>2013-06-12 00:06:13 -0700
commitdf4e45a41dbb2c5b9600f2c2f824f8e3efbc5bf0 (patch)
treef54aa9c2807350cda9080c77b26961c365927af4 /extra/json-c
parentbf794523287bafc14671f83b08f7b22bceadc4bc (diff)
Wed Jun 12 00:06:12 PDT 2013
Diffstat (limited to 'extra/json-c')
-rw-r--r--extra/json-c/PKGBUILD29
1 files changed, 11 insertions, 18 deletions
diff --git a/extra/json-c/PKGBUILD b/extra/json-c/PKGBUILD
index 0c82ec3fc..8f62686ae 100644
--- a/extra/json-c/PKGBUILD
+++ b/extra/json-c/PKGBUILD
@@ -1,28 +1,21 @@
-# $Id: PKGBUILD 176239 2013-01-28 00:11:44Z heftig $
+# $Id: PKGBUILD 188176 2013-06-11 17:10:35Z 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=2
+pkgver=0.11
+pkgrel=1
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
-license=("MIT")
-arch=('i686' 'x86_64')
-depends=('glibc')
-source=(https://github.com/downloads/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('a4edc79410eb894f08d7d52ca9f88732')
-options=(!libtool)
+license=(MIT)
+arch=(i686 x86_64)
+depends=(glibc)
+options=(!libtool !makeflags)
+source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
+sha256sums=('28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c')
+
build() {
cd $pkgname-$pkgver
-
- ## 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
}
@@ -30,5 +23,5 @@ build() {
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
- install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}