1 # $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
2 # Contributor: John Proctor <jproctor@prium.net>
3 # Maintainer: Jason Chu <jason@archlinux.org>
8 pkgdesc="TeX typesetting program"
9 depends=('libxmu' 'libxpm' 'libpng' 'lesstif')
10 conflicts=('tetex-texmf' 'texlive-core')
11 arch=('i686' 'x86_64')
13 url='http://www.tug.org/teTeX/'
14 source=(ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/tetex-src.tar.gz \
15 ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/tetex-texmf.tar.gz \
17 md5sums=('944a4641e79e61043fdaf8f38ecbb4b3' 'ed9d30d9162d16ac8d5065cde6e0f6fa'\
18 'a1f338c3631a83d47b41cae21d6666ef')
22 mkdir -p $startdir/pkg/usr/share/texmf-dist
24 mv `/bin/ls | grep -v tetex | grep -v texmf.sh` ../pkg/usr/share/texmf-dist
25 cd $startdir/src/$pkgname-src-$pkgver
26 ./configure --prefix=/usr --datadir=$startdir/pkg/usr/share \
27 --disable-multiplatform --without-texinfo --without-dialog \
28 --with-system-zlib --with-system-pnglib --with-system-ncurses
30 make prefix=$startdir/pkg/usr texmf=$startdir/pkg/usr/share/texmf install
31 rm -rf $startdir/pkg/usr/share/texmf-dist/doc
33 find $startdir/pkg -name '*.la' -exec rm {} \;
34 # install profile.d script
35 mkdir -p $startdir/pkg/etc/profile.d
36 install -m 755 $startdir/src/texmf.sh $startdir/pkg/etc/profile.d