# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=htmldoc
pkgver=1.9.19
pkgrel=0
pkgdesc="HTML conversion software"
url="https://www.msweet.org/htmldoc/"
arch="all"
license="GPL-2.0-only"
makedepends="cups-dev fltk-dev libpng-dev libjpeg-turbo-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://github.com/michaelrsweet/htmldoc/archive/v$pkgver/htmldoc-$pkgver.tar.gz"
options="!check" # no test suite in source archive

build() {
	./configure \
		--target=$CTARGET \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="
f5250e19209a08a2a135f5bd68b5ad73d1f8df2d4c4dfa3f28999655f137ee9b778ef39498dfe90e22063217fd1f001680d9da92a135a53ed311630fc714bfa5  htmldoc-1.9.19.tar.gz
"
