pkgname=libcap pkgver=2.73 pkgrel=1 pkgdesc="POSIX 1003.1e capabilities" arch=('x86_64') url="https://sites.google.com/site/fullycapable/" license=('BSD-3-Clause OR GPL-2.0-only') depends=('glibc' 'linux-pam') makedepends=('linux-api-headers') options=('!lto') source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.xz) sha256sums=(6405f6089cf4cdd8c271540cd990654d78dd0b1989b2d9bda20f933a75a795a5) prepare() { cd ${pkgname}-${pkgver} sed -i '/install -m.*STA/d' libcap/Makefile } build() { cd ${pkgname}-${pkgver} make CC=${CHOST}-gcc prefix=/usr lib=lib64 make CC=${CHOST}-gcc -C pam_cap } package() { cd ${pkgname}-${pkgver} make prefix=${pkgdir}/usr lib=lib64 install install -vDm755 pam_cap/pam_cap.so -t ${pkgdir}/usr/lib64/security install -vDm644 pam_cap/capability.conf -t ${pkgdir}/etc/security }