aports/testing/dinit/APKBUILD

42 lines
1.1 KiB
Plaintext

# Contributor: Sertonix <sertonix@posteo.net>
# Maintainer: Sertonix <sertonix@posteo.net>
pkgname=dinit
pkgver=0.18.0
pkgrel=2
pkgdesc="Service monitoring/init system"
url="https://github.com/davmac314/dinit"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-doc $pkgname-shutdown:_shutdown"
makedepends="m4"
source="$pkgname-$pkgver.tar.gz::https://github.com/davmac314/dinit/archive/refs/tags/v$pkgver.tar.gz
reboot-with-SHUTDOWN_PREFIX.patch
"
build() {
make BUILD_SHUTDOWN=yes SHUTDOWN_PREFIX="dinit-"
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir"/ BUILD_SHUTDOWN=yes SHUTDOWN_PREFIX="dinit-" install
}
_shutdown() {
pkgdesc="dinit shutdown utils"
depends="$pkgname"
amove sbin/dinit-shutdown
amove sbin/dinit-halt
amove sbin/dinit-reboot
amove sbin/dinit-poweroff
}
sha512sums="
d2ed5428c887d6f9587c64a5250383a7453b90f4c1f48add9256f90ffcf7e82909e8f14421fc24289f6973ac9bb3fbe611444686648a3748be4adec3d2e21975 dinit-0.18.0.tar.gz
59b31093f335cef0b3f47c7ec1bc4eed2fc7f094dd7d6cbc62232a618dce8543a33e92b77feb7682269661f0f3e1436129e7f9b9a3e85ae46742bd6681905089 reboot-with-SHUTDOWN_PREFIX.patch
"