CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
rc: removed lo/net support from rc.conf
[crossrootfs.git] / groff / Pkgfile
CommitLineData
6dca1d21
JB
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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=groff
90dc53e1
VM
8version=1.22.2
9release=2
6dca1d21
JB
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12build() {
13 cd $name-$version
02834ec3
VM
14 cat > config.cache << EOF
15ac_try_echo=yes
16EOF
17 pushd src/libs/gnulib
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --mandir=/usr/man \
22 --without-x \
23 --cache-file=config.cache
24 popd
90dc53e1
VM
25
26
27 # we install only the Base14 and EURO pdf fonts
28 # and don't lookup for fonts in the filesystem
29 # https://savannah.gnu.org/bugs/?38029
30 sed -r -e '/^EURO\|/s/N/Y/' \
31 -e '/^[A-Z]+\|N/d' \
32 -e '/\(gs\)/d' \
33 -i font/devpdf/Foundry.in
34
6dca1d21
JB
35 ./configure --build=$CHOST \
36 --host=$CTARGET \
37 --prefix=/usr \
38 --mandir=/usr/man \
02834ec3
VM
39 --without-x \
40 --cache-file=config.cache
90dc53e1 41
6dca1d21
JB
42 make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
43 make DESTDIR=$PKG install
90dc53e1
VM
44
45 install -d $PKG/etc
46 echo 'letter' > $PKG/etc/papersize
6dca1d21
JB
47
48 rm -rf $PKG/usr/share/{info,doc}
49 ln -sf eqn $PKG/usr/bin/geqn
50 ln -sf tbl $PKG/usr/bin/gtbl
51 ln -sf soelim $PKG/usr/bin/zsoelim
52}