# Template file for 'dinit'
pkgname=dinit
version=0.22.1
revision=2
build_style=configure
configure_args="--sbindir=/usr/bin --shutdown-prefix=dinit- --enable-shutdown
 --enable-cgroups --enable-capabilities --enable-ioprio --enable-oom-adj
 --platform=Linux"
hostmakedepends="m4"
makedepends="libcap-devel"
short_desc="Service manager and init system"
maintainer="dkwo <npiazza@disroot.org>"
license="Apache-2.0"
homepage="https://davmac.org/projects/dinit/"
changelog="https://raw.githubusercontent.com/davmac314/dinit/master/NEWS"
distfiles="https://github.com/davmac314/dinit/archive/v${version}.tar.gz"
checksum=8907d4f668259c4f66d9d2c7cbbb55d455c28dc433596ab29005d589cb572e1e

post_install() {
	vmkdir usr/share/doc/dinit
	vcopy doc/linux/* usr/share/doc/dinit/
	vdoc doc/getting_started.md

	vcompletion contrib/shell-completion/bash/dinitctl bash dinitctl
	vcompletion contrib/shell-completion/fish/dinitctl.fish fish dinitctl
	vcompletion contrib/shell-completion/zsh/_dinit zsh dinit
}
