# Maintainer: Levente Polyak # Maintainer: David Runge # Contributor: Ionut Biru # Contributor: Gerardo Exequiel Pozzi pkgbase=libcap-ng pkgname=(libcap-ng python-capng) pkgver=0.8.2 pkgrel=2 pkgdesc='Library making programming with POSIX capabilities easier than traditional libcap' url='https://people.redhat.com/sgrubb/libcap-ng/' arch=('x86_64') license=('LGPL2.1') depends=('glibc') makedepends=('swig' 'python') source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha512sums=('33832ee16972050a7c5cb20de21d766d5e88f5357db28166b83b05369f7ceea0b1aded39bae2d746d582ad4ee7703c131876fc4bcbc5d4b4eadd7dd429e8cf10') b2sums=('6bb07503421f88803ce2597289c18762f6ad06a3535ad7c6ffc28d2519adf2a130189332e56df174aa9be768340983ea6f7a6046b2209916815a19a0c6fa3693') prepare() { cd ${pkgname}-${pkgver} autoreconf -fiv } build() { cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --enable-static=no \ --without-python \ --with-python3 make } check() { cd ${pkgname}-${pkgver} make check } package_libcap-ng() { provides=('libcap-ng.so' 'libdrop_ambient.so') cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install rm -rf "${pkgdir}"/usr/lib/python* } package_python-capng() { depends+=('python' 'libcap-ng') pkgdesc+=' (python bindings)' cd libcap-ng-${pkgver} make DESTDIR="${pkgdir}" -C bindings/python3 install } # vim: ts=2 sw=2 et: