# Description: POSIX.1e capabilities library
-# URL: http://sites.google.com/site/fullycapable/
-# Maintainer: CRUX System Team, core-ports at crux dot nu
-# Depends on: attr
+# URL: http://sites.google.com/site/fullycapable/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: attr
name=libcap
-version=2.22
-release=1
-source=(http://crux.s3.amazonaws.com/dist/libcap-$version.tar.bz2)
+version=2.25
+release=2
+source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz
+ $name-$version-gperf.patch)
build () {
cd libcap-$version
+ patch -p1 -i $SRC/$name-$version-gperf.patch
sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
- make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe"
- make RAISE_SETFCAP=no DESTDIR=$PKG man_prefix=/usr install
+ make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe" PAM_CAP=no
+ make RAISE_SETFCAP=no PAM_CAP=no DESTDIR=$PKG man_prefix=/usr/share install
install -d $PKG/usr/lib
mv $PKG/lib/libcap.a $PKG/usr/lib