]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/hackbard/tetex/tetex
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / packages / hackbard / tetex / tetex
1 # hdw - linux tetex package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 3.0
6 # [S] 3-5
7 # [D] tetex-src-3.0.tar.gz ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/
8 # [D] tetex-texmf-3.0.tar.gz ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/
9 # [D] tetex-texmfsrc-3.0.tar.gz ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/
10 # [D] pdfcprot.dtx http://www.ctan.org/tex-archive/macros/latex2e/contrib/pdfcprot/
11 # [D] pdfcprot.ins http://www.ctan.org/tex-archive/macros/latex2e/contrib/pdfcprot/
12
13 srcdir="tetex-src-$ver"
14 confopt="$confopt --with-system-ncurses --with-system-zlib"
15 confopt="$confopt --exec-prefix=$prefix --without-texinfo"
16 # to avoid x dependency
17 # confopt="$confopt --with-x=no"
18
19 make_conf="all $make_conf"
20
21 pre_install()   {
22         install -v -d -m755 $prefix/share/texmf
23         gzip -dc $archdir/tetex-texmf-${ver}.tar.gz | \
24                 ( umask 0; tar -C $prefix/share/texmf -xf -)
25         gzip -dc $archdir/tetex-texmfsrc-${ver}.tar.gz | \
26                 ( umask 0; tar -C $prefix/share/texmf -xf -)
27                 }
28
29 post_install()  {
30         install -v -d -m755 $prefix/share/texmf/tex/latex/pdfcprot
31         mkdir pdfcprot && cd pdfcprot
32         cp $archdir/pdfcprot.* 
33         latex pdfcprot.ins
34         cp * $prefix/share/texmf/tex/latex/pdfcprot/
35         cd ..
36         texhash
37                 }