71420c04c6
Switch to python3-module. Switch to python3-* pkgs.
65 lines
1.6 KiB
Bash
65 lines
1.6 KiB
Bash
# Template file for 'libcap-ng'
|
|
pkgname=libcap-ng
|
|
version=0.7.8
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--without-python"
|
|
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"
|
|
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f
|
|
|
|
subpackages="libcap-ng-devel libcap-ng-progs"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
subpackages+=" libcap-ng-python libcap-ng-python3.4 libcap-ng-python3"
|
|
hostmakedepends="python-devel python3-devel swig"
|
|
configure_args+=" --with-python"
|
|
fi
|
|
|
|
libcap-ng-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|
|
libcap-ng-progs_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share
|
|
}
|
|
}
|
|
libcap-ng-python3_package() {
|
|
lib32disabled=yes
|
|
replaces="libcap-ng-python3.4>=0"
|
|
short_desc+=" - python3 bindings"
|
|
depends="python3"
|
|
pycompile_module="capng.py"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
libcap-ng-python_package() {
|
|
lib32disabled=yes
|
|
short_desc+=" - python bindings"
|
|
depends="python"
|
|
pycompile_module="capng.py"
|
|
pkg_install() {
|
|
vmove ${py2_sitelib}
|
|
}
|
|
}
|
|
libcap-ng-python3.4_package() {
|
|
lib32disabled=yes
|
|
build_style=meta
|
|
short_desc+=" - python3.4 bindings (transitional dummy package)"
|
|
depends="libcap-ng-python3>=${version}_${revision}"
|
|
}
|