blob: 1fb252799751dff0ea642b7224242dc240a31c39 (
plain)
1 # Description: The GNU troff text-formatting system
2 # URL: https://www.gnu.org/software/groff/groff.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=groff
6 version=1.22.4
7 release=1
8 source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
9
10 build() {
11 cd $name-$version
12
13 # we install only the Base14 and EURO pdf fonts
14 # and don't lookup for fonts in the filesystem
15 # https://savannah.gnu.org/bugs/?38029
16 sed -r -e '/^EURO\|/s/N/Y/' \
17 -e '/^[A-Z]+\|N/d' \
18 -e '/\(gs\)/d' \
19 -i font/devpdf/Foundry.in
20
21 ./configure --prefix=/usr \
22 --without-x \
23 --with-doc=no
24
25 make -j1
26 make DESTDIR=$PKG install
27
28 sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
29 -i $PKG/usr/share/groff/current/font/*/DESC
30
31 install -d $PKG/etc
32 echo 'letter' > $PKG/etc/papersize
33
34 rm -rf $PKG/usr/share/{info,doc}
35
36 ln -s eqn $PKG/usr/bin/geqn
37 ln -s tbl $PKG/usr/bin/gtbl
38 ln -s soelim $PKG/usr/bin/zsoelim
39 }
|