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

Felix Yan felixonmars at archlinux.org
Tue Jun 9 19:42:52 UTC 2020


    Date: Tuesday, June 9, 2020 @ 19:42:51
  Author: felixonmars
Revision: 388698

archrelease: copy trunk to testing-x86_64

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

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

Copied: libcap/repos/testing-x86_64/PKGBUILD (from rev 388697, libcap/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-06-09 19:42:51 UTC (rev 388698)
@@ -0,0 +1,47 @@
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=libcap
+pkgver=2.35
+pkgrel=1
+pkgdesc='POSIX 1003.1e capabilities'
+arch=(x86_64)
+url='https://sites.google.com/site/fullycapable/'
+license=(GPL2)
+depends=(glibc attr)
+makedepends=(linux-api-headers)
+provides=(libcap.so)
+source=(https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.{xz,sign})
+sha512sums=('1529e9cb06866167e6292776ae8743a2308ea64358a9531e90f8239ccf4970df5f6a8f2e852e5be68cca1fa73ddf0865f20dd42dc00e6d91915104750d2307d8'
+            'SKIP')
+validpgpkeys=(38A644698C69787344E954CE29EE848AE2CCF3F4) # Andrew G. Morgan <morgan at kernel.org>
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i "/SBINDIR/s#sbin#bin#" Make.Rules
+
+  # use our buildflags
+  sed -i "s/CFLAGS :=/CFLAGS += \$(CPPFLAGS) /" Make.Rules
+  sed -i "s/LDFLAGS :=/LDFLAGS +=/" Make.Rules
+}
+
+_makeargs=(
+  KERNEL_HEADERS=/usr/include
+  RAISE_SETFCAP=no
+  SBINDIR=/usr/bin
+  lib=lib
+  prefix=/usr
+)
+
+build() {
+  make -C $pkgname-$pkgver "${_makeargs[@]}"
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" "${_makeargs[@]}" install
+
+  install -Dm644 pam_cap/capability.conf \
+    "$pkgdir"/usr/share/doc/$pkgname/capability.conf.example
+}



More information about the arch-commits mailing list