blob: 241319b076bf1022b8e6d74b8f85e2bb1c81ffd8 (
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=0
pkgdesc="posix capabilities library"
url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
arch="all"
license="GPL"
depends=
makedepends="python"
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
rm "$pkgdir"/usr/lib/*.la
}
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
1fb40026b1439ff4cb6566c96f653775 fix-includes.patch"
sha256sums="48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b libcap-ng-0.7.4.tar.gz
577db727f4918e89a2695de4035244a6dc3b5280a9338c1c80ad30567e7292c3 fix-includes.patch"
sha512sums="443b92f44cffd4b436a2651eb3539c560382102d918faf63f993d3b6627c03e80f7b4a5105ddb040890ef82122a42ca6881795ab0639de337f693705f5506cf0 libcap-ng-0.7.4.tar.gz
a7ffa9b196b92398755c9409b28e966faa0143bdd115cdd7409eb65b87f09fcd6fec2937b5cc847a2eed895134fe6dd79c075cce652cb11f146eb3f0889bca59 fix-includes.patch"
|