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