compat-32/libcap-32/Pkgfile

21 lines
606 B
Plaintext
Raw Normal View History

2013-10-27 07:55:32 +01:00
# Description: POSIX.1e capabilities library
2020-07-04 13:19:30 +02:00
# URL: https://sites.google.com/site/fullycapable/
2013-10-27 07:55:32 +01:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-27 13:48:19 +02:00
# Depends on: attr-32
2013-10-27 07:55:32 +01:00
name=libcap-32
2022-10-01 14:44:04 +02:00
version=2.66
2020-01-06 11:57:18 +01:00
release=1
2018-12-05 09:51:34 +01:00
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${name%-*}-$version.tar.xz)
2013-10-27 07:55:32 +01:00
build() {
2018-08-01 16:04:18 +02:00
cd ${name%-*}-$version
2013-10-27 07:55:32 +01:00
2021-09-10 22:02:01 +02:00
sed -i "/^CFLAGS/s/-O2/$CFLAGS/" Make.Rules
2013-10-27 07:55:32 +01:00
2021-01-02 15:18:46 +01: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 07:55:32 +01:00
rm -r $PKG/usr/include
}