opt/tetex/Pkgfile
2009-08-07 16:03:57 +02:00

59 lines
1.8 KiB
Plaintext

# Maintainer: Johannes Winkelmann, jw at smts dot ch
# Packager: Robert McMeekin, viper at mcmeekin dot info
# Description: TeX distribution for UNIX compatible systems
# URL: http://www.tug.org/tetex/
# Depends on: libpng, ncurses, t1lib, libgd
name=tetex
version=3.0
release=4
source=(ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-src-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmf-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmfsrc-$version.tar.gz \
$name.patch.gz)
build() {
mkdir -p $PKG/usr/share/texmf
cp -r `/bin/ls | grep -v $name-src-$version` $PKG/usr/share/texmf/
cd $name-src-$version
zcat $SRC/tetex.patch.gz| patch -p0
./configure --prefix=/usr \
--datadir=/usr/share \
--disable-multiplatform \
--without-texinfo \
--without-texi2html \
--without-dialog \
--without-psutils \
--with-x \
--with-xdvi-x-toolkit=xaw \
--with-system-zlib \
--with-system-pnglib \
--with-system-ncurses \
--with-system-t1lib \
--with-system-gd
# Files generated during make, use conflicing getline function.
# Build these manually first.
cd texk/web2c
for i in tangleboot tangle mft otangle weave
do
make ${i}.c
sed 's|getline|&_|' -i ${i}.[ch]
done
cd ../../
# Fix some more getline conflicts
sed 's|getline|&_|' -i texk/web2c/mpware/mpto.c
sed 's|getline|&_|' -i texk/dvipsk/afm2tfm.c
make
# temp fix, this tools tries to write in real root
sed -i 's/fmtutil-sys/fmtutil-sys-fix/g' Makefile
sed -i 's/updmap-sys/updmap-sys-fix/g' Makefile
make DESTDIR=$PKG prefix=$PKG/usr texmf=$PKG/usr/share/texmf install
rm -rf $PKG/usr/info $PKG/usr/share/texmf/doc
rm -f $PKG/usr/share/texmf/tetex.patch.gz
}