1 # Description: The GNU troff text-formatting system
2 # URL: http://www.gnu.org/software/groff/groff.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
14 cat > config.cache << EOF
18 ./configure --build=$CHOST \
22 --cache-file=config.cache
26 # we install only the Base14 and EURO pdf fonts
27 # and don't lookup for fonts in the filesystem
28 # https://savannah.gnu.org/bugs/?38029
29 sed -r -e '/^EURO\|/s/N/Y/' \
32 -i font/devpdf/Foundry.in
34 ./configure --build=$CHOST \
38 --cache-file=config.cache
40 make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
41 make DESTDIR=$PKG install
43 sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
44 -i $PKG/usr/share/groff/current/font/*/DESC
47 echo 'letter' > $PKG/etc/papersize
49 rm -rf $PKG/usr/share/{info,doc}
51 ln -sf eqn $PKG/usr/bin/geqn
52 ln -sf tbl $PKG/usr/bin/gtbl
53 ln -sf soelim $PKG/usr/bin/zsoelim