void-packages/srcpkgs/halibut/template
Jürgen Buchmüller 7ce3aae118 halibut: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:34 +02:00

32 lines
822 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 -fcommon'
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
}