37 lines
1016 B
Bash
37 lines
1016 B
Bash
# Template file for 'json-c'
|
|
pkgname=json-c
|
|
version=0.16
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_THREADING=ON -DBUILD_STATIC_LIBS=ON
|
|
-DENABLE_RDRAND=$(vopt_if rdrand ON OFF)"
|
|
hostmakedepends="doxygen"
|
|
short_desc="JSON implementation in C"
|
|
maintainer="skmpz <dem.procopiou@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://json-c.github.io/json-c"
|
|
changelog="https://raw.githubusercontent.com/json-c/json-c/master/ChangeLog"
|
|
distfiles="https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${version}.tar.gz"
|
|
checksum=8e45ac8f96ec7791eaf3bb7ee50e9c2100bbbc87b8d0f1d030c5ba8a0288d96b
|
|
|
|
CFLAGS="-Wno-error"
|
|
|
|
build_options="rdrand"
|
|
desc_option_rdrand="Enable RDRAND Hardware RNG Hash Seed generation on x86_x64 platforms"
|
|
|
|
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/lib/cmake
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|