core/groff/Pkgfile

40 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2006-02-23 16:26:10 +01:00
# Description: The GNU troff text-formatting system
# URL: http://www.gnu.org/software/groff/groff.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
2006-02-23 16:26:10 +01:00
name=groff
2018-12-25 12:47:44 +01:00
version=1.22.4
release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2009-01-08 14:39:48 +01:00
2013-02-08 13:09:31 +01:00
# we install only the Base14 and EURO pdf fonts
# and don't lookup for fonts in the filesystem
# https://savannah.gnu.org/bugs/?38029
sed -r -e '/^EURO\|/s/N/Y/' \
-e '/^[A-Z]+\|N/d' \
-e '/\(gs\)/d' \
-i font/devpdf/Foundry.in
2018-12-25 12:47:44 +01:00
2009-01-08 14:39:48 +01:00
./configure --prefix=/usr \
2018-12-25 12:47:44 +01:00
--without-x \
--with-doc=no
2009-01-08 14:39:48 +01:00
2014-11-05 18:18:59 +01:00
make -j1
2009-01-08 14:39:48 +01:00
make DESTDIR=$PKG install
sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
-i $PKG/usr/share/groff/current/font/*/DESC
2018-12-25 12:47:44 +01:00
install -d $PKG/etc
echo 'letter' > $PKG/etc/papersize
2009-01-08 14:39:48 +01:00
rm -rf $PKG/usr/share/{info,doc}
2011-01-02 13:02:49 +01:00
ln -s eqn $PKG/usr/bin/geqn
ln -s tbl $PKG/usr/bin/gtbl
ln -s soelim $PKG/usr/bin/zsoelim
2006-02-23 16:26:10 +01:00
}