summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-01-26 13:58:22 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-01-26 13:58:22 (GMT)
commit8c236247afb8fb1f5441eb1813f81338cbd99da9 (patch)
tree5d0dce0e5874eae4c5846bc6ce53d10ae0d52dd5 /abs/extra
parentc697a63c6760b7b5e5f305a670f526e911bcdc08 (diff)
downloadlinhes_pkgbuild-8c236247afb8fb1f5441eb1813f81338cbd99da9.zip
linhes_pkgbuild-8c236247afb8fb1f5441eb1813f81338cbd99da9.tar.gz
linhes_pkgbuild-8c236247afb8fb1f5441eb1813f81338cbd99da9.tar.bz2
json-c: initial inclusion. dep of rsyslog
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/json-c/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/extra/json-c/PKGBUILD b/abs/extra/json-c/PKGBUILD
new file mode 100644
index 0000000..70dd735
--- /dev/null
+++ b/abs/extra/json-c/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id$
+# 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.12
+pkgrel=2
+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://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
+sha256sums=('000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f')
+
+build() {
+ cd $pkgname-$pkgver
+ CFLAGS="$CFLAGS -Wno-error"
+ ./configure --prefix=/usr --disable-static
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}