54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
# Template file for 'libcap-ng'
|
|
pkgname=libcap-ng
|
|
version=0.8.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--without-python --without-python3"
|
|
short_desc="Alternate POSIX capabilities library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="http://people.redhat.com/sgrubb/libcap-ng/"
|
|
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=68581d3b38e7553cb6f6ddf7813b1fc99e52856f21421f7b477ce5abd2605a8a
|
|
|
|
subpackages="libcap-ng-devel libcap-ng-progs"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
subpackages+=" libcap-ng-python libcap-ng-python3"
|
|
hostmakedepends="python3-devel swig python3-setuptools"
|
|
configure_args+=" --without-python --with-python3"
|
|
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
|
|
short_desc+=" - Python3 bindings"
|
|
depends="python3"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
libcap-ng-python_package() {
|
|
build_style=meta
|
|
short_desc+=" - transitional dummy pkg"
|
|
depends="libcap-ng-python3-${version}_${revision}"
|
|
}
|