libcap 2.70-1

This commit is contained in:
xhaa123 2024-09-07 23:18:11 +08:00
parent 2754e2e8ce
commit dd4032b607

36
libcap/PKGBUILD Normal file
View File

@ -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 <future_linux@163.com>
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
}