21 lines
606 B
Plaintext
Raw Normal View History

2013-10-27 17:55:32 +11:00
# Description: POSIX.1e capabilities library
2020-07-04 21:19:30 +10:00
# URL: https://sites.google.com/site/fullycapable/
2013-10-27 17:55:32 +11:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-27 21:48:19 +10:00
# Depends on: attr-32
2013-10-27 17:55:32 +11:00
name=libcap-32
2023-05-16 19:41:52 +02:00
version=2.69
2020-01-06 21:57:18 +11:00
release=1
2018-12-05 19:51:34 +11:00
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${name%-*}-$version.tar.xz)
2013-10-27 17:55:32 +11:00
build() {
2018-08-02 00:04:18 +10:00
cd ${name%-*}-$version
2013-10-27 17:55:32 +11:00
2021-09-10 22:02:01 +02:00
sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
2013-10-27 17:55:32 +11:00
2021-01-03 01:18:46 +11:00
make -C libcap GOLANG=no RAISE_SETFCAP=no PKGCONFIGDIR=/usr/lib32/pkgconfig
make -C libcap GOLANG=no RAISE_SETFCAP=no DESTDIR=$PKG prefix=/usr lib=lib32 install
2013-10-27 17:55:32 +11:00
rm -r $PKG/usr/include
}