void-packages/srcpkgs/groff/template
jbu c2bfc6b7d5 bandwith / download times + $GNU_SITE cleanup
+ To reduce bandwidth and download times, packages use bz2/lzma/xz where possible.
+ Also use ${GNU_SITE} and ${KERNEL_SITE} where appropriate.
+ Clean up xlint warnings.
+ inetutils: update to 1.9.3 and split into subpkgs
2015-05-22 11:47:56 +02:00

60 lines
1.4 KiB
Bash

# Template file for 'groff'
pkgname=groff
version=1.22.3
revision=3
hostmakedepends="perl bison"
makedepends="zlib-devel"
short_desc="The GNU troff text-formatting system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.gnu.org/software/groff/groff.html"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" groff"
fi
do_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i \
-e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
-e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
contrib/*/Makefile.sub \
doc/Makefile.in \
doc/Makefile.sub
fi
./configure ${configure_args} --without-x --disable-rpath
}
do_build() {
if [ "$CROSS_BUILD" ]; then
make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
else
make
fi
}
do_install() {
make DESTDIR=${DESTDIR} install
# Remove unused stuff.
rm -rf ${DESTDIR}/usr/lib
# From Arch:
#
# Fix some issues when encoding to utf8 man pages
# The output chars don't match keyboard chars...
for f in man mdoc; do
cat ${FILESDIR}/site.tmac >> \
${DESTDIR}/usr/share/groff/site-tmac/${f}.local
done
}
groff-doc_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vmove usr/share/doc
}
}