[arch-commits] Commit in lib32-libcap/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 25 23:38:24 UTC 2019
Date: Wednesday, December 25, 2019 @ 23:38:24
Author: felixonmars
Revision: 541481
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 541480, lib32-libcap/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: lib32-libcap/repos/multilib-testing-x86_64/PKGBUILD (from rev 541480, lib32-libcap/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2019-12-25 23:38:24 UTC (rev 541481)
@@ -0,0 +1,42 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+_pkgbasename=libcap
+pkgname=lib32-$_pkgbasename
+pkgver=2.29
+pkgrel=1
+pkgdesc="POSIX 1003.1e capabilities (32-bit)"
+arch=(x86_64)
+url="https://sites.google.com/site/fullycapable/"
+license=('GPL2')
+depends=('lib32-attr' $_pkgbasename)
+makedepends=('gcc-multilib' 'linux-api-headers')
+validpgpkeys=('38A644698C69787344E954CE29EE848AE2CCF3F4') # Andrew G. Morgan <morgan at kernel.org>
+source=(https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.{xz,sign})
+md5sums=('dd865b8a0a13cb8e9768e832e00f9f11'
+ 'SKIP')
+
+prepare() {
+ cd ${_pkgbasename}-${pkgver}
+
+ # use our buildflags
+ sed -i "s/CFLAGS :=/CFLAGS += \$(CPPFLAGS) /" Make.Rules
+ sed -i "s/LDFLAGS :=/LDFLAGS +=/" Make.Rules
+}
+
+build() {
+ cd ${_pkgbasename}-${pkgver}
+
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ make -C libcap CC="gcc -m32" prefix=/usr lib=lib32
+}
+
+package() {
+ cd ${_pkgbasename}-${pkgver}
+
+ make -C libcap prefix=/usr lib=lib32 DESTDIR="$pkgdir" install
+ chmod 755 "$pkgdir"/usr/lib32/libcap.so.${pkgver}
+
+ rm -rf "$pkgdir"/usr/include
+}
More information about the arch-commits
mailing list