# Template file for 's6-dns'
pkgname=s6-dns
version=2.4.1.2
revision=1
build_style=configure
configure_args="--prefix=/usr --libdir=/usr/lib
 --with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
 --with-lib=${XBPS_CROSS_BASE}/usr/lib
 $(vopt_if static --enable-static-libc)"
makedepends="execline-devel skalibs-devel"
short_desc="Suite of DNS client programs and libraries for Unix systems"
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
license="ISC"
homepage="https://skarnet.org/software/s6-dns"
distfiles="https://skarnet.org/software/s6-dns/s6-dns-${version}.tar.gz"
checksum=0618d8830fce63ee17b7f55e49428069c85c97a1710827a7b2349b660cd33a4e

build_options="static"

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

s6-dns-doc_package() {
	short_desc+=" - documentation"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/share/doc
	}
}
s6-dns-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.a
	}
}
