# Template file for 'libcbor'
pkgname=libcbor
version=0.5.0
revision=1
build_style=cmake
make_build_args="cbor cbor_shared"
short_desc="Library for parsing and generating CBOR, a binary data format"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/PJK/libcbor"
distfiles="https://github.com/PJK/libcbor/archive/v${version}.tar.gz"
checksum=9bbec94bb385bad3cd2f65482e5d343ddb97e9ffe261123ea0faa3bfea51d320

post_install() {
	vlicense LICENSE.md
}

libcbor-devel_package() {
	depends="libcbor>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
