core/libcap/Pkgfile

29 lines
709 B
Plaintext
Raw Normal View History

2010-06-03 12:23:01 +02:00
# Description: POSIX.1e capabilities library
2021-03-14 12:07:33 +01:00
# URL: https://sites.google.com/site/fullycapable/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2021-08-30 10:59:11 +02:00
# Depends on: linux-pam
2010-06-03 12:23:01 +02:00
name=libcap
version=2.69
2020-08-18 13:31:30 +02:00
release=1
2020-01-05 21:19:39 +01:00
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
2010-06-03 12:23:01 +02:00
2021-05-26 13:27:18 +02:00
build() {
2020-05-04 14:53:36 +02:00
cd $name-$version
2010-06-03 12:23:01 +02:00
2021-05-26 13:27:18 +02:00
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Make.Rules
2010-06-03 12:23:01 +02:00
2020-05-04 14:53:36 +02:00
make install \
GOLANG=no \
RAISE_SETFCAP=no \
PKGCONFIGDIR=/usr/lib/pkgconfig \
DESTDIR=$PKG
2010-06-03 12:23:01 +02:00
2020-05-04 14:53:36 +02:00
install -d $PKG/usr/lib
2020-11-03 15:31:45 +01:00
mv $PKG/lib/lib{cap.a,psx.*} $PKG/usr/lib
2020-05-04 14:53:36 +02:00
rm $PKG/lib/libcap.so
ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
2020-05-04 14:53:36 +02:00
sed '/^libdir/s|/lib|/usr/lib|' -i $PKG/usr/lib/pkgconfig/*.pc
2010-06-03 12:23:01 +02:00
}