aboutsummaryrefslogtreecommitdiffstats
path: root/community/tini/APKBUILD
blob: 7e291243f7b8e2e394312122e31ecd122fa04d14 (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
# Maintainer: Danilo Bürger <danilo@feastr.de>

pkgname=tini
pkgver=0.13.2
pkgrel=0
pkgdesc="A tiny but valid init for containers"
url="https://github.com/krallin/tini"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev cmake"
install=""
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 . || return 1
	make || return 1
	make tini-static || return 1
}

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

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

md5sums="a03dc4ce82e88b6a87747abd5d0d93cc  tini-0.13.2.tar.gz"
sha256sums="85e18a4e4089612821321d1d67c16337797c3c78e81117dea56ad75ece20d05f  tini-0.13.2.tar.gz"
sha512sums="117822bf2e45b7cf732bfcd2aa5ea268a189c395f189c03d0e5dcd982872cff29d50adbb1a4d1b85859db4736e932900cfb64a1c487ba271a305146e9677a1d4  tini-0.13.2.tar.gz"