aboutsummaryrefslogtreecommitdiffstats
path: root/community/tini/APKBUILD
blob: b268efb1a50da28f7d2185f75f853a48214a022a (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.17.0
pkgrel=0
pkgdesc="A tiny but valid init for containers"
url="https://github.com/krallin/tini"
arch="all"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-static"
source="$pkgname-$pkgver.tar.gz::https://github.com/krallin/tini/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

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="4e59241bd621cd89f9c07dcd7a21754a947c87d3571b06bc5f034c0059a20cbc02d4d22fd08a79633b84fd47980dbf5240e2d2fa382aaf5c32e6003710b7691a  tini-0.17.0.tar.gz"