51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
# Template file for 'libcap-ng'
|
|
pkgname=libcap-ng
|
|
version=0.7.4
|
|
revision=2
|
|
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"
|
|
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
unset hostmakedepends
|
|
configure_args+=" --without-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
|
|
}
|
|
}
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
libcap-ng-python_package() {
|
|
lib32disabled=yes
|
|
short_desc+=" - python bindings"
|
|
depends="python"
|
|
pycompile_module="capng"
|
|
pkg_install() {
|
|
vmove "usr/lib/python*"
|
|
}
|
|
}
|
|
fi
|