CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[crossrootfs.git] / libcap / Pkgfile
CommitLineData
e66f01e6 1# Description: POSIX.1e capabilities library
c8a7de8e
VM
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
e66f01e6
VM
6
7name=libcap
27b5fc65 8version=2.24
dd9617fe 9release=2
27b5fc65 10source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
e66f01e6
VM
11
12build () {
13 cd libcap-$version
14
15 sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
16
8e9c85b1
VM
17 make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe" PAM_CAP=no
18 make RAISE_SETFCAP=no PAM_CAP=no DESTDIR=$PKG man_prefix=/usr/share install
e66f01e6
VM
19
20 install -d $PKG/usr/lib
21 mv $PKG/lib/libcap.a $PKG/usr/lib
22 rm $PKG/lib/libcap.so
23 ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
24}