CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
vim: updated to 7.3.754 and aligned with upstream
[crossrootfs.git] / libcap / Pkgfile
CommitLineData
e66f01e6
VM
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# Depends on: attr
5
6name=libcap
7version=2.22
8release=1
9source=(http://crux.s3.amazonaws.com/dist/libcap-$version.tar.bz2)
10
11build () {
12 cd libcap-$version
13
14 sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
15
16 make CC="$CC" BUILD_CC="gcc" BUILD_CFLAGS="-O2 -pipe"
17 make RAISE_SETFCAP=no DESTDIR=$PKG man_prefix=/usr install
18
19 install -d $PKG/usr/lib
20 mv $PKG/lib/libcap.a $PKG/usr/lib
21 rm $PKG/lib/libcap.so
22 ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
23}