50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# Template file for 'libcap'
|
|
pkgname=libcap
|
|
version=2.31
|
|
revision=1
|
|
bootstrap=yes
|
|
build_style=gnu-makefile
|
|
make_install_args="SBINDIR=/usr/bin exec_prefix=/usr
|
|
LIBDIR=/usr/lib PKGCONFIGDIR=/usr/lib/pkgconfig RAISE_SETFCAP=no"
|
|
make_use_env=yes
|
|
makedepends="attr-devel"
|
|
short_desc="POSIX.1e capabilities suite"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://sites.google.com/site/fullycapable/"
|
|
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
|
|
checksum=c6088de41e1c97fa8047e2e7de0e4ee0cd13e6cc16538022230ae76727a87c46
|
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
hostmakedepends="perl"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" gperf"
|
|
fi
|
|
fi
|
|
|
|
pre_build() {
|
|
vsed -e 's,CC :=,CC ?=,' -i Make.Rules
|
|
# Disable tests, as they cause cross-build failure
|
|
vsed -e '/test:/,/.sh/d' -e '/tests/d' -i Makefile
|
|
}
|
|
|
|
libcap-devel_package() {
|
|
depends="libcap>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/libcap.a
|
|
vmove usr/lib/libcap.so
|
|
vmove usr/share/man/man3
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
libcap-progs_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share
|
|
}
|
|
}
|