32 lines
792 B
Text
32 lines
792 B
Text
# Template build file for 'json-c'.
|
|
pkgname=json-c
|
|
version=0.12
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
short_desc="A JSON implementation in C"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="MIT"
|
|
homepage="http://oss.metaparadigm.com/$pkgname"
|
|
distfiles="https://s3.amazonaws.com/json-c_releases/releases/$pkgname-$version.tar.gz"
|
|
checksum=000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f
|
|
|
|
CFLAGS="-Wno-error"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
}
|
|
|
|
json-c-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|