diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template index 198932b933e..71946cc6d49 100644 --- a/srcpkgs/libcap/template +++ b/srcpkgs/libcap/template @@ -2,7 +2,7 @@ pkgname=libcap version=2.24 revision=3 -hostmakedepends="gperf perl" +bootstrap=yes makedepends="attr-devel" short_desc="POSIX.1e capabilities suite" maintainer="Juan RP " @@ -11,6 +11,10 @@ license="GPL-2" distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.xz" checksum=cee4568f78dc851d726fc93f25f4ed91cc223b1fe8259daa4a77158d174e6c65 +if [ -z "$CHROOT_READY" ]; then + hostmakedepends="gperf perl" +fi + do_configure() { sed -i 's/CFLAGS :=/CFLAGS +=/g' Make.Rules sed -i '/BUILD_CFLAGS/s/$(CFLAGS)//' Make.Rules