void-packages/srcpkgs/libconfig/template

44 lines
1.1 KiB
Bash

# Template file for 'libconfig'
pkgname=libconfig
version=1.7.1
revision=1
build_style=gnu-configure
hostmakedepends="automake byacc flex libtool"
short_desc="C Configuration File Library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://hyperrealm.com/libconfig/libconfig.html"
license="LGPL-2.1"
distfiles="https://github.com/hyperrealm/libconfig/archive/v${version}.tar.gz"
checksum=d288e6ae817f4ef78df43cdb2647f768dc97899ee82fcc41f857e8eb9fd7fbdb
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
}
}