2009-12-02 21:06:56 +00:00
|
|
|
# Template file for 'libcap-ng'
|
|
|
|
pkgname=libcap-ng
|
2014-05-01 08:16:21 +00:00
|
|
|
version=0.7.4
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-04-26 03:32:43 +00:00
|
|
|
hostmakedepends="python-devel swig"
|
2010-10-29 14:28:59 +00:00
|
|
|
short_desc="An alternate POSIX capabilities library"
|
2009-12-02 21:06:56 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-09 15:58:05 +00:00
|
|
|
homepage="http://people.redhat.com/sgrubb/libcap-ng/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-08-13 08:10:48 +00:00
|
|
|
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
2014-05-01 08:16:21 +00:00
|
|
|
checksum=48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2013-04-26 03:32:43 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
unset hostmakedepends
|
|
|
|
configure_args+=" --without-python"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libcap-ng-devel_package() {
|
2014-01-11 10:40:28 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-01-11 10:40:28 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcap-ng-progs_package() {
|
2014-01-11 10:40:28 +00:00
|
|
|
short_desc+=" - utilities"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-26 03:32:43 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-01-01 15:10:11 +00:00
|
|
|
libcap-ng-python_package() {
|
2014-04-04 11:57:58 +00:00
|
|
|
lib32disabled=yes
|
2014-01-11 10:40:28 +00:00
|
|
|
short_desc+=" - python bindings"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="python"
|
|
|
|
pycompile_module="capng"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
2013-04-26 03:32:43 +00:00
|
|
|
fi
|