1 # Description: POSIX.1e capabilities library
2 # URL: http://sites.google.com/site/fullycapable/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
15 sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
17 make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe"
18 make RAISE_SETFCAP=no DESTDIR=$PKG man_prefix=/usr install
20 install -d $PKG/usr/lib
21 mv $PKG/lib/libcap.a $PKG/usr/lib
23 ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so