blob: f722a994913b41020192f8815b2e50509448c23f (
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
59
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.7.3
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"
update_config_sub || return 1
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="610afb774f80a8032b711281df126283 libcap-ng-0.7.3.tar.gz
1fb40026b1439ff4cb6566c96f653775 fix-includes.patch"
sha256sums="5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 libcap-ng-0.7.3.tar.gz
577db727f4918e89a2695de4035244a6dc3b5280a9338c1c80ad30567e7292c3 fix-includes.patch"
sha512sums="f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 libcap-ng-0.7.3.tar.gz
a7ffa9b196b92398755c9409b28e966faa0143bdd115cdd7409eb65b87f09fcd6fec2937b5cc847a2eed895134fe6dd79c075cce652cb11f146eb3f0889bca59 fix-includes.patch"
|