# Template file for 'halibut'
pkgname=halibut
version=1.3
revision=1
build_style=cmake
hostmakedepends="perl"
if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" halibut"
fi
short_desc="Yet another free document preparation system"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=aaa0f7696f17f74f42d97d0880aa088f5d68ed3079f3ed15d13b6e74909d3132

do_install() {
	vbin build/halibut
	if [ "$CROSS_BUILD" ]; then
		halibut doc/manpage.but --man=build/doc/halibut.1
	fi
	vman build/doc/halibut.1
	vlicense LICENCE LICENSE
}
