mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-03 15:51:33 +01:00
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libcap-ng
|
|
pkgver=0.7.7
|
|
pkgrel=0
|
|
pkgdesc="posix capabilities library"
|
|
url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
|
|
arch="all"
|
|
license="GPL"
|
|
depends=
|
|
depends_dev="linux-headers"
|
|
makedepends="python $depends_dev"
|
|
install=
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
|
|
source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz
|
|
fix-includes.patch
|
|
"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
prepare() {
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="posix capabilities utils"
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
|
|
}
|
|
|
|
md5sums="3d7d126b29e2869a0257c17c8b0d9b2e libcap-ng-0.7.7.tar.gz
|
|
d0b630552aeba718e3fb956ade989460 fix-includes.patch"
|
|
sha256sums="615549ce39b333f6b78baee0c0b4ef18bc726c6bf1cca123dfd89dd963f6d06b libcap-ng-0.7.7.tar.gz
|
|
bbd5d9869b323503a0953ea8225718b62fc9f342b710b05729a88ae16147905b fix-includes.patch"
|
|
sha512sums="eb049b29fdd31aa31c6c14ca023df62c2910504c1edd1242dba13579d0befae5b98249c22c145517bd5451969a0b186390dc11b2269e58001336e10c855e920c libcap-ng-0.7.7.tar.gz
|
|
8de98ce0fae63812cf7fd17e788343798b0cab63ba029f046ac9b89b2305da17432bafdd3dfa36046fc2cc0a453e0c889f6744c632f4617e0e5fc08e2823e324 fix-includes.patch"
|