Date: Tuesday, November 6, 2018 @ 12:56:12 Author: allan Revision: 337923
archrelease: copy trunk to testing-x86_64 Added: libcap/repos/testing-x86_64/ libcap/repos/testing-x86_64/PKGBUILD (from rev 337922, libcap/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: libcap/repos/testing-x86_64/PKGBUILD (from rev 337922, libcap/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-11-06 12:56:12 UTC (rev 337923) @@ -0,0 +1,37 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: Hugo Doria <h...@archlinux.org> + +pkgname=libcap +pkgver=2.25 +pkgrel=2 +pkgdesc='POSIX 1003.1e capabilities' +arch=('x86_64') +url='http://sites.google.com/site/fullycapable/' +license=('GPL2') +depends=('glibc' 'attr') +makedepends=('linux-api-headers') +validpgpkeys=('38A644698C69787344E954CE29EE848AE2CCF3F4') # Andrew G. Morgan <mor...@kernel.org> +source=(https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.{xz,sign}) +md5sums=('6666b839e5d46c2ad33fc8aa2ceb5f77' 'SKIP') + +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 +}