void-packages/srcpkgs/libconfig/template

40 lines
1.1 KiB
Bash

# Template file for 'libconfig'
pkgname=libconfig
version=1.5
revision=3
build_style=gnu-configure
short_desc="C Configuration File Library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://hyperrealm.com/libconfig/libconfig.html"
license="LGPL-2.1"
distfiles="http://www.hyperrealm.com/libconfig/${pkgname}-${version}.tar.gz"
checksum=e31daa390d8e4461c8830512fe2e13ba1a3d6a02a2305a02429eec61e68703f6
libconfig++_package() {
short_desc="C++ Configuration File Library"
pkg_install() {
vmove usr/lib/libconfig++.so.*
}
}
libconfig++-devel_package() {
depends="libconfig++>=${version}_${revision}"
short_desc="C++ Configuration File Library - development files"
pkg_install() {
vmove usr/include/libconfig.h++
vmove usr/lib/pkgconfig/libconfig++.pc
vmove usr/lib/libconfig++.a
vmove usr/lib/libconfig++.so
}
}
libconfig-devel_package() {
depends="libconfig>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libconfig.a
vmove usr/lib/libconfig.so
vmove usr/share
}
}