blob: 26be421119da9f9fe58b840a190ea07ed9e55529 (
plain)
1 # Description: TeX distribution for UNIX compatible systems.
2 # URL: http://www.tug.org/tetex/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Danny Rawlins, crux at romster dot me
5 # Depends on: clisp icu libgd poppler t1lib util-linux xorg-libxi
6
7 name=texlive
8 version=20160523b
9 release=1
10 source=(ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-$version-texmf.tar.xz
11 ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-$version-source.tar.xz
12 http://download.savannah.gnu.org/releases/texi2html/texi2html-5.0.tar.bz2)
13
14 build() {
15 cd $name-20160523-source
16
17 chmod -R a-s $SRC
18
19 find $SRC \
20 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
21 -exec chmod 755 {} \; -o \
22 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
23 -exec chmod 644 {} \;
24
25 # Fix some paths
26 sed -i 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' texk/kpathsea/texmf.cnf
27 sed -i 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' texk/kpathsea/texmf.cnf
28
29 export TEXMFCNF=""
30 export KPATHSEA_WARNING=0
31
32 mkdir build
33 cd build
34
35 ../configure \
36 --prefix=/usr \
37 --mandir=/usr/man \
38 --with-banner-add=" $(crux)" \
39 --disable-native-texlive-build \
40 --enable-largefile \
41 --disable-missing \
42 --with-xdvi-x-toolkit=xaw \
43 --enable-shared \
44 --disable-static \
45 --with-x \
46 --without-etex \
47 --disable-xindy \
48 --disable-luatex \
49 --disable-luajittex \
50 --with-clisp-runtime=system \
51 --with-system-poppler \
52 --with-system-cairo \
53 --with-system-pixman \
54 --with-system-xpdf \
55 --with-system-ncurses \
56 --with-system-zlib \
57 --with-system-libpng \
58 --with-system-t1lib \
59 --with-system-gd \
60 --with-system-freetype2 \
61 --with-system-gmp \
62 --with-system-mpfr \
63 --with-system-icu
64
65 make
66 make DESTDIR=$PKG install
67
68 cd ..
69
70 install -d $PKG/usr/lib/perl5/site_perl/5.24/TeXLive
71 install texk/tests/TeXLive/TL{Config,Utils}.pm $PKG/usr/lib/perl5/site_perl/5.24/TeXLive
72
73 # Create symlinks
74 PATH="$PKG/usr/bin:$PATH" LD_LIBRARY_PATH+=$PKG/usr/lib \
75 texlinks -f $PKG/usr/share/texmf-dist/web2c/fmtutil.cnf $PKG/usr/bin
76
77 cd $SRC/$name-20160523-texmf
78
79 # Fix some paths
80 sed -i 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' texmf-dist/web2c/texmf.cnf
81 sed -i 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' texmf-dist/web2c/texmf.cnf
82
83 install -d $PKG/usr/share
84
85 mv $PKG/usr/share/texmf-dist $PKG/usr/share/texmf-dist.tmp
86 mv texmf-dist $PKG/usr/share
87
88 # sub-optimal but better than copying texmf-dist!
89 cp -a $PKG/usr/share/texmf-dist.tmp/* $PKG/usr/share/texmf-dist
90 rm -r $PKG/usr/share/texmf-dist.tmp
91
92 cd $SRC/texi2html-*
93
94 ./configure \
95 --prefix=/usr \
96 --mandir=/usr/man
97
98 make
99 make install DESTDIR=$PKG
100
101 rm -r $PKG/usr/share/{info,locale}
102 rm -r $PKG/usr/share/texmf-dist/doc
103 find $PKG/usr/share/texmf-dist \
104 -regex '.*/\(COPYING\|README\|AUTHORS\|INSTALL\|ChangeLog\|NEWS\|TODO\).*' \
105 -delete
106 }
|