diff --git a/libcap/PKGBUILD b/libcap/PKGBUILD new file mode 100644 index 0000000..6361c35 --- /dev/null +++ b/libcap/PKGBUILD @@ -0,0 +1,36 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libcap +pkgver=2.70 +pkgrel=1 +pkgdesc="POSIX 1003.1e capabilities" +arch=('x86_64') +url="https://sites.google.com/site/fullycapable/" +license=('BSD-3-Clause OR GPL-2.0-only') +depends=('glibc' 'gcc-libs') +makedepends=('linux-api-headers') +source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.xz) +sha256sums=(23a6ef8aadaf1e3e875f633bb2d116cfef8952dba7bc7c569b13458e1952b30f) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i '/install -m.*STA/d' libcap/Makefile +} + +build() { + cd ${pkgname}-${pkgver} + + + make BUILD_CC=${CHOST}-gcc CC=${CHOST}-gcc prefix=/usr lib=lib64 PAM_CAP=no +} + +package() { + cd ${pkgname}-${pkgver} + + make prefix=${pkgdir}/usr lib=lib64 PAM_CAP=no install +}