vp-build/srcpkgs/halibut/template

32 lines
813 B
Bash

# Template file for 'halibut'
pkgname=halibut
version=1.2
revision=1
build_style=gnu-makefile
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=1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f
CFLAGS='-I../charset -I../build'
pre_build() {
export LIBS="$LDFLAGS"
}
do_install() {
if [ "$CROSS_BUILD" ]; then
export HALIBUT=/usr/bin/halibut
fi
make -e -C doc
vman doc/halibut.1
vdoc doc/halibut.txt
vbin build/halibut
vlicense LICENCE LICENSE
}