# Template file for 'dinit'
pkgname=dinit
version=0.19.2
revision=1
build_style=meson
configure_args="
 -Ddinit-sbindir=/usr/bin
 -Dshutdown-prefix=dinit-
 -Dunit-tests=true
 -Digr-tests=true
 -Db_ndebug=false"
hostmakedepends="m4"
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=d5e390bc0450b93b0b1b3826de5d46acc19b227b0f93077ea5a6ac8a9c7e2ca5

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