void-packages/srcpkgs/cJSON/template
2018-12-17 12:04:49 -02:00

26 lines
647 B
Bash

# Template file for 'cJSON'
pkgname=cJSON
version=1.7.9
revision=1
build_style=cmake
short_desc="Ultralightweight JSON parser in ANSI C"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/DaveGamble/cJSON"
distfiles="https://github.com/DaveGamble/cJSON/archive/v${version}.tar.gz"
checksum=7a5c8595ea6cd1f3c8c9b8fc549bc93acccf91c57d0ee4a4c9b56fe8dbd6153d
post_install() {
vlicense LICENSE
}
cJSON-devel_package() {
depends="cJSON-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}