2009-12-02 22:06:56 +01:00
|
|
|
# Template file for 'libcap-ng'
|
|
|
|
pkgname=libcap-ng
|
2015-05-15 07:15:47 +02:00
|
|
|
version=0.7.7
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2015-05-09 10:47:59 +02:00
|
|
|
hostmakedepends="python-devel python3.4-devel swig"
|
2010-10-29 16:28:59 +02:00
|
|
|
short_desc="An alternate POSIX capabilities library"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-07-09 17:58:05 +02:00
|
|
|
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
|
|
|
|
2015-05-09 10:47:59 +02:00
|
|
|
subpackages="libcap-ng-devel libcap-ng-progs libcap-ng-python libcap-ng-python3.4"
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2013-04-26 05:32:43 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-05-08 07:06:34 +02:00
|
|
|
subpackages="${subpackages/libcap-ng-python/}"
|
2015-05-09 10:47:59 +02:00
|
|
|
subpackages="${subpackages/libcap-ng-python3.4/}"
|
2013-04-26 05:32:43 +02:00
|
|
|
configure_args+=" --without-python"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libcap-ng-devel_package() {
|
2014-01-11 11:40:28 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
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"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libcap-ng-progs_package() {
|
2014-01-11 11:40:28 +01:00
|
|
|
short_desc+=" - utilities"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|
2015-05-09 10:47:59 +02:00
|
|
|
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() {
|
2015-05-09 10:47:59 +02:00
|
|
|
vmove "usr/lib/python2*"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
2015-05-08 07:06:34 +02:00
|
|
|
}
|