void-packages/srcpkgs/libconfig/template

47 lines
1.2 KiB
Bash

# Template file for 'libconfig'
pkgname=libconfig
version=1.7.3
revision=1
build_style=gnu-configure
hostmakedepends="automake byacc flex libtool texinfo"
short_desc="C Configuration File Library"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="LGPL-2.1-or-later"
homepage="http://hyperrealm.com/libconfig/libconfig.html"
distfiles="https://github.com/hyperrealm/libconfig/archive/v${version}.tar.gz"
checksum=68757e37c567fd026330c8a8449aa5f9cac08a642f213f2687186b903bd7e94e
pre_configure() {
autoreconf -vi
}
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
}
}