From cfc3b460394e7697bbaebd8ef0e7b73a385c00c6 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sun, 3 Sep 2023 00:10:39 +0200 Subject: [PATCH] dinit: new ptrcport --- dinit/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dinit/APKBUILD diff --git a/dinit/APKBUILD b/dinit/APKBUILD new file mode 100644 index 0000000..0471304 --- /dev/null +++ b/dinit/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Patrycja Rosa +pkgname=dinit +pkgver=0.17.0 +pkgrel=0 +pkgdesc="Service monitoring / \"init\" system" +url="https://github.com/davmac314/dinit" +arch="all" +license="Apache-2.0" +makedepends="meson m4" +subpackages="$pkgname-doc $pkgname-init:_init" +source="https://github.com/davmac314/dinit/archive/v$pkgver/dinit-$pkgver.tar.gz" +builddir="$srcdir/dinit-$pkgver" + +build() { + abuild-meson \ + . output + meson compile -C output +} + +check() { + meson test --no-rebuild --print-errorlogs -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +_init() { + amove \ + sbin/shutdown \ + sbin/reboot \ + sbin/halt +} + +sha512sums=" +5e426e97c83f953af11bf9f9411eeed4fd7384e8391d61b5cc4d7502e0450a04c24ea0e143cf50c77aafad6487fcc994f844b2be0f2eded81221fd9e905e7b32 dinit-0.17.0.tar.gz +"