blob: 19eddc33c3f2d1c5777130c24e1a5276c2778470 (
plain) (
tree)
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=libcap
pkgver=2.64
pkgrel=0
pkgdesc="POSIX 1003.1e capabilities"
arch="all"
license="BSD-3-Clause OR GPL-2.0-only"
url="https://sites.google.com/site/fullycapable/"
depends=""
depends_dev="linux-headers"
makedepends_build="linux-headers perl !gperf"
makedepends_host="$depends_dev attr-dev"
makedepends="$makedepends_build $makedepends_host"
subpackages="$pkgname-static:_static $pkgname-doc $pkgname-dev"
source="https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.xz"
build() {
make \
BUILD_CC=gcc \
CC="${CC:-gcc}" \
lib=lib
}
check() {
make -j1 test
}
_static() {
pkgdesc="$pkgdesc (static library)"
depends="$pkgname-dev"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}
package() {
make \
lib=/lib \
prefix=/usr \
RAISE_SETFCAP=no \
DESTDIR="$pkgdir" install
}
sha512sums="3c5cf478cef249585ee1a0dfd75c6b41b0daf4e1ecb59dce894eac5523841aa79ca499be4161f73193dd8e7363edcd51063f3e281930cee939ebd50983eecbaf libcap-2.64.tar.xz"
|