# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: John Vogel <jvogel@stygian.me>
pkgname=docbook2mdoc
pkgver=1.1.0
pkgrel=4
pkgdesc="DocBook to mdoc converter"
url="https://mandoc.bsd.lv/docbook2mdoc/"
arch="all"
license="ISC"
makedepends="bsd-compat-headers"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://mandoc.bsd.lv/docbook2mdoc/snapshots/docbook2mdoc-$pkgver.tgz
	fix-mandir.patch
	strtonum.patch"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
d935a12de59a1b91f51b3ddcc1047ce6e46f0490852c3ab1191402f6c2f9d8e79c57b1ad67ac7b2527c9aa4788f027ca6b83dffbcfed756af0422858713101be  docbook2mdoc-1.1.0.tgz
ff477e2f01275fa1dbcdb9c157c7086de76a66683855fba5cd7ac4c1fe0d258fde4869f4de12a740b5c0eee76e4f89d9e89fea9c528cfa0a4f2cf5bd9ebe3982  fix-mandir.patch
e5673304bd817d12041ecc15c1c1e53ac03b57521b49d8b309ba2a695bc148da5946b9d90b195bbabbf8a1ac1055c086145bc6317762b469446ae77762156ed6  strtonum.patch
"
