void-packages/srcpkgs/libcap-ng/template

50 lines
1.1 KiB
Text
Raw Normal View History

# Template file for 'libcap-ng'
pkgname=libcap-ng
2014-01-11 11:43:32 +00:00
version=0.7.3
revision=1
build_style=gnu-configure
hostmakedepends="python-devel swig"
short_desc="An alternate POSIX capabilities library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://people.redhat.com/sgrubb/libcap-ng/"
license="GPL-2, LGPL-2.1"
2012-08-13 08:10:48 +00:00
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
2014-01-11 11:43:32 +00:00
checksum=5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1
if [ "$CROSS_BUILD" ]; then
unset hostmakedepends
configure_args+=" --without-python"
fi
libcap-ng-devel_package() {
2014-01-11 10:40:28 +00:00
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
2014-01-11 10:40:28 +00:00
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/aclocal
}
}
libcap-ng-progs_package() {
2014-01-11 10:40:28 +00:00
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}
if [ -z "$CROSS_BUILD" ]; then
libcap-ng-python_package() {
2014-01-11 10:40:28 +00:00
short_desc+=" - python bindings"
depends="python"
pycompile_module="capng"
pkg_install() {
vmove "usr/lib/python*"
}
}
fi