aboutsummaryrefslogtreecommitdiffstats
path: root/community/tini/APKBUILD
blob: 38fb43cc982335a96e785bfc6248cf550fbbdbf6 (plain) (blame)
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
# Maintainer: Danilo B├╝rger <danilo@feastr.de>
pkgname=tini
pkgver=0.18.0
pkgrel=0
pkgdesc="A tiny but valid init for containers"
url="https://github.com/krallin/tini"
arch="all"
license="MIT"
options="!check" # Test suite depends on Docker
makedepends="cmake"
subpackages="$pkgname-static"
source="$pkgname-$pkgver.tar.gz::https://github.com/krallin/tini/archive/v$pkgver.tar.gz"

build() {
	cd "$builddir"
	export CFLAGS="-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"
	cmake .
	make
	make tini-static
}

package() {
	cd "$builddir"
	install -D -m755 tini "$pkgdir"/sbin/tini
}

static() {
	cd "$builddir"
	pkgdesc="Static build of tini"
	install -D -m755 tini-static "$subpkgdir"/sbin/tini-static
}

sha512sums="83279180b6a875aaff9b6b7446ee7e71fd05357279744afcb4db67c76572dc871acfba86c035857009b5dd88ca75d9f2e815d6a925563cdb3e6e771eb83be9b1  tini-0.18.0.tar.gz"