[arch-commits] Commit in lib32-libcap/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Jul 31 08:44:55 UTC 2020


    Date: Friday, July 31, 2020 @ 08:44:54
  Author: felixonmars
Revision: 666108

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-libcap/repos/multilib-testing-x86_64/
  lib32-libcap/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 666107, lib32-libcap/trunk/PKGBUILD)

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

Copied: lib32-libcap/repos/multilib-testing-x86_64/PKGBUILD (from rev 666107, lib32-libcap/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2020-07-31 08:44:54 UTC (rev 666108)
@@ -0,0 +1,45 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=lib32-libcap
+pkgver=2.38
+pkgrel=1
+pkgdesc="POSIX 1003.1e capabilities (32-bit)"
+arch=(x86_64)
+url="https://sites.google.com/site/fullycapable/"
+license=('GPL2')
+depends=('lib32-glibc' 'lib32-attr' 'libcap')
+makedepends=('linux-api-headers')
+provides=('libcap.so')
+source=(https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.{xz,sign})
+sha512sums=('df92c77f29d9a92b9356f9422a55ba56855e89875b24db57f42f247a8ee0891a2e50f235805aa848c2564de33c1ecd5d68e4a9e8ea6896542cf7585ccbf677d1'
+            'SKIP')
+validpgpkeys=('38A644698C69787344E954CE29EE848AE2CCF3F4') # Andrew G. Morgan <morgan at kernel.org>
+
+prepare() {
+  cd libcap-$pkgver
+
+  # use our buildflags
+  sed -i "s/CFLAGS :=/CFLAGS += \$(CPPFLAGS) /" Make.Rules
+  sed -i "s/LDFLAGS :=/LDFLAGS +=/" Make.Rules
+}
+
+_makeargs=(
+  CC="gcc -m32"
+  KERNEL_HEADERS=/usr/include
+  RAISE_SETFCAP=no
+  SBINDIR=/usr/bin
+  lib=lib32
+  prefix=/usr
+)
+
+build() {
+  make -C libcap-$pkgver/libcap "${_makeargs[@]}"
+}
+
+package() {
+  cd libcap-$pkgver/libcap
+  make DESTDIR="$pkgdir" "${_makeargs[@]}" install
+
+  rm -r "$pkgdir"/usr/include
+}


More information about the arch-commits mailing list