void-packages/srcpkgs/halibut/template
2016-05-26 18:13:32 +02:00

32 lines
868 B
Bash

# Template file for 'halibut'
pkgname=halibut
version=1.1
revision=5
build_style=gnu-makefile
CFLAGS='-I../charset -I../build'
disable_parallel_build=yes
hostmakedepends="perl"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" halibut"
fi
short_desc="Yet another free document preparation system"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=b964950d11ed09d3af28ac095da539613f6e50d650f01fe72b4ae752724c80a0
nopie=yes # segfaults on x86_64-musl
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
}