# Maintainer: PktSurf app=libcap version=2.67 build=1sml homepage="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/" download="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.xz" desc="library to get/set POSIX capabilities" requires="musl" preservestaticlibs=1 prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions #sed -i 's,BUILD_GPERF := ,BUILD_GPERF := no #,' Make.Rules #cp $srcdir/libcap2-cap_names.h libcap/cap_names.h #touch libcap/cap_names.list.h libcap/_makenames libcap/cap_names.h } build() { make prefix=/usr man_prefix=/usr/share/man lib=lib CFLAGS="$CFLAGS" \ BUILD_CC="$CC" make FAKEROOT=$pkg prefix=/usr man_prefix=/usr/share/man SBINDIR=/usr/bin lib=lib install LIBDIR=$pkg/lib SBINDIR=$pkg/bin cp License $pkgdocs/ mkfinalpkg } sha512sums=" f5874540006c2a00e77bcaf55ac5f0c111f710a779e9bdbe8e4c165e729eb8709841819d6540cc86719d3246a9b8d44e3e035fcc1961378afd16fdbb3f47603c libcap-2.67.tar.lz "