[arch-commits] Commit in libcap/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Feb 21 19:07:08 UTC 2020
Date: Friday, February 21, 2020 @ 19:07:08
Author: heftig
Revision: 376007
archrelease: copy trunk to testing-x86_64
Added:
libcap/repos/testing-x86_64/
libcap/repos/testing-x86_64/PKGBUILD
(from rev 376006, libcap/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: libcap/repos/testing-x86_64/PKGBUILD (from rev 376006, libcap/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-02-21 19:07:08 UTC (rev 376007)
@@ -0,0 +1,39 @@
+# 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.32
+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})
+sha256sums=('1005e3d227f2340ad1e3360ef8b69d15e3c72a29c09f4894d7aac038bd26e2be'
+ '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
+}
+
+build() {
+ make -C $pkgname-$pkgver KERNEL_HEADERS=/usr/include
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make prefix=/usr lib=/lib DESTDIR="$pkgdir" RAISE_SETFCAP=no install
+
+ install -Dm644 pam_cap/capability.conf \
+ "$pkgdir"/usr/share/doc/$pkgname/capability.conf.example
+}
More information about the arch-commits
mailing list