2011-09-28 07:02:54 +00:00
|
|
|
# Template build file for 'json-c'.
|
|
|
|
pkgname=json-c
|
2014-04-20 08:17:52 +00:00
|
|
|
version=0.12
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-04 16:27:02 +00:00
|
|
|
hostmakedepends="automake libtool"
|
2011-09-28 07:02:54 +00:00
|
|
|
short_desc="A JSON implementation in C"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-09-28 07:02:54 +00:00
|
|
|
license="MIT"
|
2013-04-12 14:52:48 +00:00
|
|
|
homepage="http://oss.metaparadigm.com/$pkgname"
|
2013-05-05 06:42:32 +00:00
|
|
|
distfiles="https://s3.amazonaws.com/json-c_releases/releases/$pkgname-$version.tar.gz"
|
2014-04-20 08:17:52 +00:00
|
|
|
checksum=000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f
|
|
|
|
|
|
|
|
CFLAGS="-Wno-error"
|
2013-05-05 06:42:32 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-12 14:52:48 +00:00
|
|
|
post_install() {
|
2011-09-28 07:02:54 +00:00
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-12 14:52:48 +00:00
|
|
|
|
|
|
|
json-c-devel_package() {
|
2014-02-04 16:27:02 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 14:52:48 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-04 16:27:02 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 14:52:48 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|