[arch-commits] Commit in libcap-ng/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu Mar 31 20:13:51 UTC 2022


    Date: Thursday, March 31, 2022 @ 20:13:51
  Author: anthraxx
Revision: 441047

archrelease: copy trunk to testing-x86_64

Added:
  libcap-ng/repos/testing-x86_64/
  libcap-ng/repos/testing-x86_64/PKGBUILD
    (from rev 441046, libcap-ng/trunk/PKGBUILD)

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: libcap-ng/repos/testing-x86_64/PKGBUILD (from rev 441046, libcap-ng/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-03-31 20:13:51 UTC (rev 441047)
@@ -0,0 +1,69 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
+
+pkgbase=libcap-ng
+pkgname=(libcap-ng python-capng)
+pkgver=0.8.3
+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=(LGPL2.1)
+depends=(glibc)
+makedepends=(python swig)
+options=(debug)
+source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('5b078164a9e7475349f3143e1f3ee219df09252185726aec92f1e20386e14d1c708f54aea986600078bd5851f6103e43624f8a3527140ebb955601820e2e4c89')
+b2sums=('166d4addeea96db2ed9e0f1cb1284af5a2dd690a46ae5fd598e16ea2058adbf94ba523ba594e006eea2a0a6a2f3232f8fb2d4716e749ac3383012af7b0034522')
+
+_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
+  autoreconf -fiv
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --enable-static=no \
+    --without-python \
+    --with-python3
+  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.so)
+  provides=(python-libcap-ng)
+
+  mv -v python-capng/* "$pkgdir"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list