# Template file for 'lowdown'
pkgname=lowdown
version=3.0.1
revision=1
build_style=configure
configure_args="PREFIX=/usr MANDIR=/usr/share/man"
make_cmd="bmake"
make_install_target="install install_libs"
make_check_target="regress"
hostmakedepends="bmake"
short_desc="Simple markdown translator"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="ISC"
homepage="https://kristaps.bsd.lv/lowdown/"
changelog="https://kristaps.bsd.lv/lowdown/archive.html"
distfiles="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${version}.tar.gz"
checksum=ac9ea2b51c8bd59350c7bf8db5e2067e9d961b1f48d362cd8a56b022850e965c

post_install() {
	vlicense LICENSE.md
}

lowdown-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove "usr/share/man/man3/*.3"
	}
}
