CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
grep: updated to 3.1
[crossrootfs.git] / libcap / Pkgfile
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
5 # Depends on: attr
6
7 name=libcap
8 version=2.25
9 release=2
10 source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz
11 $name-$version-gperf.patch)
12
13 build () {
14 cd libcap-$version
15
16 patch -p1 -i $SRC/$name-$version-gperf.patch
17 sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
18
19 make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe" PAM_CAP=no
20 make RAISE_SETFCAP=no PAM_CAP=no DESTDIR=$PKG man_prefix=/usr/share install
21
22 install -d $PKG/usr/lib
23 mv $PKG/lib/libcap.a $PKG/usr/lib
24 rm $PKG/lib/libcap.so
25 ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
26 }