diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-03-02 12:54:00 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-03-02 13:59:38 -0300 |
commit | 77612b154f70946a5e6b4a8eba0c1a7d8d40f2d6 (patch) | |
tree | 176603a6275e63b7235ff326362e0ed29fa5ef7a /community | |
parent | e037586c72e959a4524b202c2c60bd43ceed7fc8 (diff) | |
download | aports-77612b154f70946a5e6b4a8eba0c1a7d8d40f2d6.tar.bz2 aports-77612b154f70946a5e6b4a8eba0c1a7d8d40f2d6.tar.xz |
community/tini: modernize
Diffstat (limited to 'community')
-rw-r--r-- | community/tini/APKBUILD | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/community/tini/APKBUILD b/community/tini/APKBUILD index 38fb43cc98..9a198134cf 100644 --- a/community/tini/APKBUILD +++ b/community/tini/APKBUILD @@ -1,33 +1,31 @@ # Maintainer: Danilo Bürger <danilo@feastr.de> pkgname=tini pkgver=0.18.0 -pkgrel=0 +pkgrel=1 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" -options="!check" # Test suite depends on Docker makedepends="cmake" subpackages="$pkgname-static" source="$pkgname-$pkgver.tar.gz::https://github.com/krallin/tini/archive/v$pkgver.tar.gz" build() { - cd "$builddir" - export CFLAGS="-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37" - cmake . - make - make tini-static + 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() { - cd "$builddir" - install -D -m755 tini "$pkgdir"/sbin/tini + install -Dm755 build/tini "$pkgdir"/sbin/tini } static() { - cd "$builddir" pkgdesc="Static build of tini" - install -D -m755 tini-static "$subpkgdir"/sbin/tini-static + install -Dm755 "$builddir"/build/tini-static "$subpkgdir"/sbin/tini-static } sha512sums="83279180b6a875aaff9b6b7446ee7e71fd05357279744afcb4db67c76572dc871acfba86c035857009b5dd88ca75d9f2e815d6a925563cdb3e6e771eb83be9b1 tini-0.18.0.tar.gz" |