void-packages/srcpkgs/iniparser/template

38 lines
958 B
Bash

# Template file for 'iniparser'
pkgname=iniparser
version=4.2.4
revision=1
build_style=cmake
configure_args="-DBUILD_EXAMPLES=OFF"
hostmakedepends="doxygen"
short_desc="Free stand-alone ini file parsing library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.com/iniparser/iniparser"
changelog="https://gitlab.com/iniparser/iniparser/-/releases"
distfiles="https://gitlab.com/iniparser/iniparser/-/archive/v${version}/iniparser-v${version}.tar.gz"
checksum=3b6a6cf85d18727371d7c02f548e9e34fa311a9244c504690f21d508168bd70e
post_install() {
vlicense LICENSE
}
iniparser-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
iniparser-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/doc/iniparser
}
}