43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'libconfig'
|
|
pkgname=libconfig
|
|
version=1.7.2
|
|
revision=2
|
|
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=f67ac44099916ae260a6c9e290a90809e7d782d96cdd462cac656ebc5b685726
|
|
|
|
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
|
|
}
|
|
}
|