Add a TexLive package (#621)
[termux-packages] / packages / texlive / termux-install-tl
CommitLineData
cb2a32e4 1export TMPDIR=$PREFIX/tmp/
2cd $TMPDIR
3
4wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
5tar xvzf install-tl-unx.tar.gz
6cd install-tl-*/
7
8#patch install-tl
9sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" tlpkg/TeXLive/TLUtils.pm
10
11cat >> texlive_inst.profile << XX
12
13selected_scheme scheme-custom
14TEXDIR $PREFIX/local/texlive/2016
15TEXMFCONFIG ~/.texlive2016/texmf-config
16TEXMFHOME ~/texmf
17TEXMFLOCAL $PREFIX/local/texlive/texmf-local
18TEXMFSYSCONFIG $PREFIX/local/texlive/2016/texmf-config
19TEXMFSYSVAR $PREFIX/local/texlive/2016/texmf-var
20TEXMFVAR ~/.texlive2016/texmf-var
21collection-basic 1
22collection-latex 1
23collection-luatex 1
24in_place 0
25option_adjustrepo 1
26option_autobackup 1
27option_backupdir tlpkg/backups
28option_desktop_integration 0
29option_doc 0
30option_file_assocs 0
31option_fmt 1
32option_letter 0
33option_menu_integration 1
34option_path 0
35option_post_code 1
36option_src 0
37option_sys_bin $PREFIX/bin
38option_sys_info $PREFIX/local/share/info
39option_sys_man $PREFIX/local/share/man
40option_w32_multi_user 0
41option_write18_restricted 1
42portable 0
43
44XX
45
46#start installer with a profile and premade binaries
47perl ./install-tl --custom-bin=$PREFIX/local/texlive/2016/bin/pkg --profile texlive_inst.profile
48
49mkdir -p $PREFIX/etc/profile.d/
50
51cat > $PREFIX/etc/profile.d/texlive.sh << XX
52export PATH=$PATH:$PREFIX/local/texlive/2016/bin/custom
53export TMPDIR=$PREFIX/tmp/
54
55XX
56
57#fix tlpkg
58sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" $PREFIX/local/texlive/2016/tlpkg/TeXLive/TLUtils.pm
59
60texlinks