2011-09-28 18:02:05 +08:00
pkgname = json-c
2015-11-17 15:07:26 +08:00
pkgver = 0.12
2011-09-28 18:02:05 +08:00
pkgrel = 1
pkgdesc = "JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects."
2013-07-18 03:25:11 +08:00
arch = ( 'x86_64' )
url = "https://github.com/json-c/json-c/wiki"
license = ( 'MIT' )
depends = ( glibc)
source = ( https://s3.amazonaws.com/${ pkgname } _releases/releases/$pkgname -${ pkgver } .tar.gz)
2015-11-17 15:07:26 +08:00
sha256sums = ( '000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f' )
2011-09-28 18:02:05 +08:00
build( ) {
cd " ${ srcdir } / ${ pkgname } - ${ pkgver } "
2015-11-17 15:07:26 +08:00
CFLAGS = " $CFLAGS -Wno-error "
2013-07-18 03:25:11 +08:00
./configure --prefix= /usr --disable-static
2011-09-28 18:02:05 +08:00
make
}
package( ) {
cd " ${ srcdir } / ${ pkgname } - ${ pkgver } "
make DESTDIR = " ${ pkgdir } " install
2013-07-18 03:25:11 +08:00
install -Dm644 COPYING " $pkgdir /usr/share/licenses/ $pkgname /COPYING "
2011-09-28 18:02:05 +08:00
}