blob: d657b13652f151a1aa8cbe399b92be5df9f6173f (
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
|
# Maintainer: Danilo Bürger <danilo@feastr.de>
pkgname=tini
pkgver=0.15.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="774addddeb2bcefd1db2e4bff7c55bba6c3f4adc41e0b2a647059eef8cc5cc9d4a47b68cb4b89aa4e9e52b85916fe2680dad2a414c82b3c276beea89e3689481 tini-0.15.0.tar.gz"
|