sbcl rebuild
[arch-packages.git] / libcap-ng / repos / core-x86_64 / PKGBUILD
blob7d57bb073280cd8d2f7a05e98bcdd6040f7d3fcd
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
6 pkgbase=libcap-ng
7 pkgname=(libcap-ng python-capng)
8 pkgver=0.8.3
9 pkgrel=1
10 pkgdesc='A library for Linux that makes using posix capabilities easy'
11 arch=(x86_64)
12 url='https://people.redhat.com/sgrubb/libcap-ng/'
13 license=(LGPL2.1)
14 depends=(glibc)
15 makedepends=(python swig)
16 options=(debug)
17 source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
18 sha512sums=('5b078164a9e7475349f3143e1f3ee219df09252185726aec92f1e20386e14d1c708f54aea986600078bd5851f6103e43624f8a3527140ebb955601820e2e4c89')
19 b2sums=('166d4addeea96db2ed9e0f1cb1284af5a2dd690a46ae5fd598e16ea2058adbf94ba523ba594e006eea2a0a6a2f3232f8fb2d4716e749ac3383012af7b0034522')
21 _pick() {
22   local p="$1" f d; shift
23   for f; do
24     d="$srcdir/$p/${f#$pkgdir/}"
25     mkdir -p "$(dirname "$d")"
26     mv "$f" "$d"
27     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
28   done
31 prepare() {
32   cd $pkgbase-$pkgver
33   autoreconf -fiv
36 build() {
37   cd $pkgbase-$pkgver
38   ./configure \
39     --prefix=/usr \
40     --enable-static=no \
41     --without-python \
42     --with-python3
43   make
46 check() {
47   make check -C $pkgbase-$pkgver
50 package_libcap-ng() {
51   provides=(libcap-ng.so libdrop_ambient.so)
53   make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver
55   (
56     cd "$pkgdir"
57     _pick python-capng usr/lib/python*
58   )
61 package_python-capng() {
62   pkgdesc+=' (Python bindings)'
63   depends+=(libcap-ng.so)
64   provides=(python-libcap-ng)
66   mv -v python-capng/* "$pkgdir"
69 # vim: ts=2 sw=2 et: