33 lines
761 B
Bash
33 lines
761 B
Bash
# Template build file for 'json-c'.
|
|
pkgname=json-c
|
|
version=0.13
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
short_desc="A JSON implementation in C"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="http://oss.metaparadigm.com/$pkgname"
|
|
distfiles="https://s3.amazonaws.com/json-c_releases/releases/$pkgname-$version.tar.gz"
|
|
checksum=0316780be9ad16c42d7c26b015a784fd5df4b0909fef0aba51cfb13e492ac24d
|
|
|
|
CFLAGS="-Wno-error"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|