blob: 015ee57e813dfb5db5624464acb4be34ae2f099f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.7.4
pkgrel=2
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="55c57c0673b944ea1a755bcb2636dabd libcap-ng-0.7.4.tar.gz
e53b83924635fddc92e4f553396afc4a fix-includes.patch"
sha256sums="48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b libcap-ng-0.7.4.tar.gz
5f40a10b9902ac812c6c10705874b991125f6b803b672dd35db4eb6d791a0b69 fix-includes.patch"
sha512sums="443b92f44cffd4b436a2651eb3539c560382102d918faf63f993d3b6627c03e80f7b4a5105ddb040890ef82122a42ca6881795ab0639de337f693705f5506cf0 libcap-ng-0.7.4.tar.gz
62bf6093ca091b4ae364480a6f8866db0e55b4733e9f69dd9d8caba6a92d9714e242da0f4eecbe958fcf17d028ac3ed52f6ec2c99c30a981af045010ce6678a0 fix-includes.patch"
|