new: lfs/libcap-2.70
This commit is contained in:
parent
b7c060cf25
commit
b91bea68b9
27
lfs/libcap-2.70.PKGBUILD
Normal file
27
lfs/libcap-2.70.PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
||||
pkgname=libcap
|
||||
pkgver=2.70
|
||||
pkgdesc="POSIX 1003.1e capabilities"
|
||||
homepage="https://sites.google.com/site/fullycapable/"
|
||||
license=('BSD-3-Clause OR GPL-2.0-only')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${sources[0]}")
|
||||
md5sums=("df0e20c6eeca849347b87d5d6a8870c0")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i '/install -m.*STA/d' libcap/Makefile
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make prefix=/usr lib=lib
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix=/usr lib=lib DESTDIR="${pkgdir}" install
|
||||
install -vDm 644 License -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user