void-packages/srcpkgs/libcbor/template
2025-03-22 18:49:17 +01:00

27 lines
710 B
Bash

# Template file for 'libcbor'
pkgname=libcbor
version=0.12.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
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=5368add109db559f546d7ed10f440f39a273b073daa8da4abffc83815069fa7f
post_install() {
vlicense LICENSE.md
}
libcbor-devel_package() {
depends="libcbor>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}