#!/bin/bash # groff # # Douglas Thrift # # $Id$ name=groff version=1.19.2 revision=0 categories=(base print) description='GNU troff text-formatting system' url='http://www.gnu.org/software/groff/groff.html' depends=('base/gcc' 'base/perl') sources=(`site_gnu` groff.patch) function build() { gnu_patch groff.patch || return $? mkdir -v $package/usr || return $? gnu_configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --without-x || return $? for file in eqn tbl; do ln -v $package/usr/bin/$file $package/usr/bin/g$file || return $? done cd $package/usr/share/info || return $? for info in groff*; do mv -v $info ${info/groff/groff.info} || return $? done }