# Template file for 's6-frontend'
pkgname=s6-frontend
version=0.0.1.2
revision=1
build_style=configure
configure_args="--prefix=/usr --libdir=/usr/lib --includedir=/usr/include
 --with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
 --with-lib=${XBPS_CROSS_BASE}/usr/lib
 $(vopt_if static '--enable-static-libc')
 $(vopt_if multicall '--enable-multicall')"
makedepends="skalibs-devel execline-devel s6-devel s6-linux-init-devel s6-rc-devel"
short_desc="High-level frontend utilities for s6 and s6-rc"
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
license="ISC"
homepage="https://skarnet.org/software/s6-frontend/"
distfiles="https://git.skarnet.org/cgit/s6-frontend/snapshot/${pkgname}-${version}.tar.gz"
checksum=c101c515832c977ebf0fe8f9934a348d279869cfb2161669ba53d9a178c4888b

build_options="static"
desc_option_static="Link binaries against static libc"

post_install() {
	vlicense COPYING
	vdoc README
	vcopy "doc/*" usr/share/doc/${pkgname}
}

s6-frontend-doc_package() {
	short_desc+=" - documentation"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/share/doc
	}
}
