Commit 73883b72 authored by Leo's avatar Leo
Browse files

main/libcap: upgrade to 2.28

parent 9cd1bc2a
Pipeline #4089 failed with stages
in 1 minute and 4 seconds
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap
pkgver=2.27
pkgver=2.28
pkgrel=0
pkgdesc="POSIX 1003.1e capabilities"
options="checkroot"
......@@ -15,24 +15,20 @@ makedepends="$makedepends_build $makedepends_host"
checkdepends="bash"
source="https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
make BUILD_CC=gcc CC="${CC:-gcc}" lib=lib prefix=/usr DESTDIR="$pkgdir"
}
check() {
cd "$builddir"
# Running make test runs the command below but with sudo
cd progs && ./quicktest.sh
}
package() {
cd "$builddir"
make lib=lib prefix=/usr RAISE_SETFCAP=no DESTDIR="$pkgdir" install
# Fix perms
chmod -v 0755 "$pkgdir"/usr/lib/libcap.so.${pkgver}
chmod -v 0755 "$pkgdir"/usr/lib/libcap.so.$pkgver
}
static() {
......@@ -43,4 +39,4 @@ static() {
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}
sha512sums="e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6 libcap-2.27.tar.xz"
sha512sums="e693ac97483f575bb8a3f4d50262082e6d0d4906f2df48a4f52db4dde21014fcdc683d40712294c7c59d1be21740276bd20b486afee53815dc49e57a9938c5eb libcap-2.28.tar.xz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment