# Maintainer: Danilo Bürger pkgname=tini pkgver=0.19.0 pkgrel=2 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 samurai" 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 -G Ninja \ -DCMAKE_BUILD_TYPE=None cmake --build build --target all tini-static } package() { install -Dm755 build/tini "$pkgdir"/sbin/tini install -Dm755 build/tini-static "$pkgdir"/sbin/tini-static } static() { pkgdesc="Static build of tini" amove sbin/tini-static } sha512sums=" 1fa85b56e2c6085ea474f251928e7a40510d92aeef60b3c145b0496969c1b5df86835d143cb91ef5b4bf4da63fa8a56947cc39a4276e4b72faa57276d432b292 tini-0.19.0.tar.gz "