summaryrefslogtreecommitdiffstats
path: root/main/libcap-ng/APKBUILD
blob: 3abe2e23179ab8fa95630c12f26ce6a9426b30ad (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.6.4
pkgrel=0
pkgdesc="posix capabilities library"
url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
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
}

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"