void-packages/srcpkgs/libcap-ng/template

60 lines
1.5 KiB
Bash
Raw Normal View History

# Template file for 'libcap-ng'
pkgname=libcap-ng
2015-05-15 07:15:47 +02:00
version=0.7.7
revision=1
build_style=gnu-configure
hostmakedepends="python-devel python3.4-devel swig"
short_desc="An alternate POSIX capabilities library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://people.redhat.com/sgrubb/libcap-ng/"
license="GPL-2, LGPL-2.1"
2012-08-13 10:10:48 +02:00
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
2015-05-15 07:15:47 +02:00
checksum=615549ce39b333f6b78baee0c0b4ef18bc726c6bf1cca123dfd89dd963f6d06b
2015-05-08 07:06:34 +02:00
subpackages="libcap-ng-devel libcap-ng-progs libcap-ng-python libcap-ng-python3.4"
if [ "$CROSS_BUILD" ]; then
2015-05-08 07:06:34 +02:00
subpackages="${subpackages/libcap-ng-python/}"
subpackages="${subpackages/libcap-ng-python3.4/}"
configure_args+=" --without-python"
fi
libcap-ng-devel_package() {
2014-01-11 11:40:28 +01: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 11:40:28 +01:00
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/aclocal
}
}
libcap-ng-progs_package() {
2014-01-11 11:40:28 +01:00
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}
libcap-ng-python3.4_package() {
lib32disabled=yes
short_desc+=" - python3.4 bindings"
depends="python3.4"
pycompile_module="capng"
pycompile_version="3.4"
pkg_install() {
vmove "usr/lib/python3.4"
}
}
2015-05-08 07:06:34 +02:00
libcap-ng-python_package() {
lib32disabled=yes
short_desc+=" - python bindings"
depends="python"
pycompile_module="capng"
pkg_install() {
vmove "usr/lib/python2*"
}
2015-05-08 07:06:34 +02:00
}