void-packages/srcpkgs/docbook2mdoc/template

20 lines
638 B
Bash

# Template file for 'docbook2mdoc'
pkgname=docbook2mdoc
version=1.1.0
revision=1
build_style=gnu-makefile
makedepends="libbsd-devel"
short_desc="Converter from DocBook V4.x and v5.x XML into mdoc"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://mdocml.bsd.lv/docbook2mdoc"
distfiles="http://mdocml.bsd.lv/docbook2mdoc/snapshots/${pkgname}-${version}.tgz"
checksum=9fc6411cf041ff10e76f19a50a142075a8df9d343f248e20d8fc98bf8e547c71
LDFLAGS="-lbsd"
post_extract() {
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile
sed -i 's,/man/man1,/share/man/man1,g' Makefile
vsed -e 's:sys/queue.h:bsd/sys/queue.h:' -i node.h
}