termux-packages/disabled-packages/texlive/termux-install-tl

61 lines
1.5 KiB
Plaintext
Executable File

export TMPDIR=$PREFIX/tmp/
cd $TMPDIR
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xvzf install-tl-unx.tar.gz
cd install-tl-*/
#patch install-tl
sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" tlpkg/TeXLive/TLUtils.pm
cat >> texlive_inst.profile << XX
selected_scheme scheme-custom
TEXDIR $PREFIX/local/texlive/2016
TEXMFCONFIG ~/.texlive2016/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL $PREFIX/local/texlive/texmf-local
TEXMFSYSCONFIG $PREFIX/local/texlive/2016/texmf-config
TEXMFSYSVAR $PREFIX/local/texlive/2016/texmf-var
TEXMFVAR ~/.texlive2016/texmf-var
collection-basic 1
collection-latex 1
collection-luatex 1
in_place 0
option_adjustrepo 1
option_autobackup 1
option_backupdir tlpkg/backups
option_desktop_integration 0
option_doc 0
option_file_assocs 0
option_fmt 1
option_letter 0
option_menu_integration 1
option_path 0
option_post_code 1
option_src 0
option_sys_bin $PREFIX/bin
option_sys_info $PREFIX/local/share/info
option_sys_man $PREFIX/local/share/man
option_w32_multi_user 0
option_write18_restricted 1
portable 0
XX
#start installer with a profile and premade binaries
perl ./install-tl --custom-bin=$PREFIX/local/texlive/2016/bin/pkg --profile texlive_inst.profile
mkdir -p $PREFIX/etc/profile.d/
cat > $PREFIX/etc/profile.d/texlive.sh << XX
export PATH=$PATH:$PREFIX/local/texlive/2016/bin/custom
export TMPDIR=$PREFIX/tmp/
XX
#fix tlpkg
sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" $PREFIX/local/texlive/2016/tlpkg/TeXLive/TLUtils.pm
texlinks