blob: fa9b0f25461439870aac32e62ee5e23dc1395177 (
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
|
# Maintainer: Danilo Bürger <danilo@feastr.de>
pkgname=tini
pkgver=0.19.0
pkgrel=0
pkgdesc="A tiny but valid init for containers"
options="!check" # Test suite depends on Docker
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"
build() {
export CFLAGS="$CFLAGS -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"
cmake -B build . \
-DCMAKE_BUILD_TYPE=None
make -C build
make -C build tini-static
}
package() {
install -Dm755 build/tini "$pkgdir"/sbin/tini
}
static() {
pkgdesc="Static build of tini"
install -Dm755 "$builddir"/build/tini-static "$subpkgdir"/sbin/tini-static
}
sha512sums="1fa85b56e2c6085ea474f251928e7a40510d92aeef60b3c145b0496969c1b5df86835d143cb91ef5b4bf4da63fa8a56947cc39a4276e4b72faa57276d432b292 tini-0.19.0.tar.gz"
|