updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / tetex / PKGBUILD
blobf02a4c49296ee023cb7585f1453cb7f4da64bce3
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>
5 pkgname=tetex
6 pkgver=3.0
7 pkgrel=5
8 pkgdesc="TeX typesetting program"
9 depends=('libxmu' 'libxpm' 'libpng' 'lesstif')
10 conflicts=('tetex-texmf' 'texlive-core')
11 arch=('i686' 'x86_64')
12 license=('GPL')
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 \
16         texmf.sh)
17 md5sums=('944a4641e79e61043fdaf8f38ecbb4b3' 'ed9d30d9162d16ac8d5065cde6e0f6fa'\
18          'a1f338c3631a83d47b41cae21d6666ef')
19 install=tetex.install
20         
21 build() {
22   mkdir -p $startdir/pkg/usr/share/texmf-dist
23   cd $startdir/src
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
29   make all || return 1
30   make prefix=$startdir/pkg/usr texmf=$startdir/pkg/usr/share/texmf install
31   rm -rf $startdir/pkg/usr/share/texmf-dist/doc  
32   #libtoolslay
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