ptrcports/dinit/APKBUILD
2023-09-03 00:10:39 +02:00

37 lines
827 B
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
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
"