aboutsummaryrefslogtreecommitdiffstats
path: root/main/s6-linux-init/APKBUILD
blob: dac1fcdb79ef69deaa7f01c5ff98582e3eabf46f (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
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Laurent Bercot <ska-devel@skarnet.org>
pkgname=s6-linux-init
pkgver=1.0.4.0
pkgrel=0
pkgdesc="Set of tools to create and run an s6-based init system"
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
options="!check"
makedepends="skalibs-dev execline-dev s6-dev linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="http://skarnet.org/software/s6-linux-init/s6-linux-init-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		--skeldir=/etc/s6-linux-init/skel
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir"/usr/share/doc
	cp -a "$builddir"/doc "$subpkgdir"/usr/share/doc/$pkgname
}

sha512sums="791e376911c9217adace72c6048a295d4b486fc51c0a73578a40a0b020a735d9444f58e5f49d613e99a81aadd63d016ae60c8b056c49c1b50693a7b054890926  s6-linux-init-1.0.4.0.tar.gz"