Core/libcap/PKGBUILD
2024-09-07 23:18:11 +08:00

37 lines
1.0 KiB
Bash

# 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
}