# Template file for 'docbook2mdoc'
pkgname=docbook2mdoc
version=1.1.0
revision=2
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libbsd-devel libmd-devel"
short_desc="Converter from DocBook V4.x and v5.x XML into mdoc"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://mandoc.bsd.lv/docbook2mdoc"
distfiles="https://mandoc.bsd.lv/docbook2mdoc/snapshots/${pkgname}-${version}.tgz"
checksum=9fc6411cf041ff10e76f19a50a142075a8df9d343f248e20d8fc98bf8e547c71

CFLAGS="-D_GNU_SOURCE"

post_extract() {
	# Create License file
	sed -E '3,16 !d;s/^ [*] ?//' docbook2mdoc.c > LICENSE
}

post_install() {
	vlicense LICENSE
}
