summaryrefslogtreecommitdiffstats
path: root/main/libcap-ng/APKBUILD
blob: 853baa898af00a657e5c0ee509fa67f345d4a58a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.6.4
pkgrel=2
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"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	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="ae817cd585ca11db257330b392003ed6  libcap-ng-0.6.4.tar.gz"