| Name |
libcap-ng |
| Description |
A library for Linux that makes using posix capabilities easy |
| Version |
0.9-1 |
| Package Base |
libcap-ng |
| Homepage |
https://people.redhat.com/sgrubb/libcap-ng/ |
| Maintainers |
['David Runge <dvzrv@archlinux.org>', 'Levente Polyak <anthraxx[at]archlinux[dot]org>'] |
| Contributors |
['Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>', 'Ionut Biru <ibiru@archlinux.org>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/libcap-ng |
| Sources |
['https://github.com/stevegrubb/libcap-ng/archive/v0.9/libcap-ng-0.9.tar.gz'] |
| Dependencies |
['glibc'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['python', 'swig'] |
| Provides |
['libcap-ng.so', 'libdrop_ambient.so'] |
| Builddate |
11-01-2026 20:40:01 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL-2.0-or-later', 'LGPL-2.1-or-later'] |
| Hash |
0be16e335cf4d311e338b8a073d1ac99a7e0f0bb6957198b4b8ba677c69c9466 |
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
pkgbase=libcap-ng
pkgname=(
libcap-ng
python-capng
)
pkgver=0.9
pkgrel=1
pkgdesc='A library for Linux that makes using posix capabilities easy'
arch=(x86_64)
url='https://people.redhat.com/sgrubb/libcap-ng/'
license=(
GPL-2.0-or-later
LGPL-2.1-or-later
)
depends=(glibc)
makedepends=(
python
swig
)
source=(
https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
)
sha512sums=('b3a868707a88836101a4b19068c5e8f776637bd0184be1f80d4ce1beba7108325822f42996778a0b844f85a77c955be3e144722b54dbfa22322e848319a48e23')
b2sums=('3aa85dafbed89696f9611ef277faeeb1efad40bb4c9891837b1574d435eeece1ba522711a19a13ebe98e387c749e28ce5cb381e17a4f051eb61fcdddf25eface')
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
prepare() {
cd $pkgbase-$pkgver
# make stupid autotools happy -_-
touch NEWS
autoreconf -fiv
}
build() {
local configure_options=(
--enable-static=no
--prefix=/usr
--with-python3
--without-python
)
cd $pkgbase-$pkgver
./configure "${configure_options[@]}"
make
}
check() {
make check -C $pkgbase-$pkgver
}
package_libcap-ng() {
provides=(
libcap-ng.so
libdrop_ambient.so
)
make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver
(
cd "$pkgdir"
_pick python-capng usr/lib/python*
)
}
package_python-capng() {
pkgdesc+=' (Python bindings)'
depends+=(
libcap-ng libcap-ng.so
python
)
provides=(
python-libcap-ng
)
mv -v python-capng/* "$pkgdir"
}
# vim: ts=2 sw=2 et: