CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: updated to 2.25-2
[crossrootfs.git] / groff / Pkgfile
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
5 # Depends on:
6
7 name=groff
8 version=1.22.3
9 release=2
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14 cat > config.cache << EOF
15 ac_try_echo=yes
16 EOF
17 pushd src/libs/gnulib
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --without-x \
22 --cache-file=config.cache
23 popd
24
25
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/' \
30 -e '/^[A-Z]+\|N/d' \
31 -e '/\(gs\)/d' \
32 -i font/devpdf/Foundry.in
33
34 ./configure --build=$CHOST \
35 --host=$CTARGET \
36 --prefix=/usr \
37 --without-x \
38 --cache-file=config.cache
39
40 make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=
41 make DESTDIR=$PKG install
42
43 sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
44 -i $PKG/usr/share/groff/current/font/*/DESC
45
46 install -d $PKG/etc
47 echo 'letter' > $PKG/etc/papersize
48
49 rm -rf $PKG/usr/share/{info,doc}
50
51 ln -sf eqn $PKG/usr/bin/geqn
52 ln -sf tbl $PKG/usr/bin/gtbl
53 ln -sf soelim $PKG/usr/bin/zsoelim
54 }