3 TL_ROOT
=$PREFIX/opt
/texlive
5 export TMPDIR
=$PREFIX/tmp
/
6 mkdir
-p
$TMPDIR/termux-tl-installer
7 cd $TMPDIR/termux-tl-installer
9 wget
-N http
://mirror.ctan.org
/systems
/texlive
/tlnet
/install-tl-unx.
tar.gz
10 tar xzfv install-tl-unx.
tar.gz
> flist
15 sed -E
-i
"s@/bin/sh@$PREFIX/bin/sh@" tlpkg
/TeXLive
/TLUtils.pm
16 #This patch won't be needed after the next version of fmtutil.pl is released.
17 sed -i
"s@fmtutil-sys \$common_fmtutil_args --no-strict --all@fmtutil-sys \$common_fmtutil_args --all@" install-tl
18 cat > texlive_inst.profile
<< XXHEREXX
20 selected_scheme scheme-custom
21 TEXDIR ${TL_ROOT}/${TL_VERSION}
22 TEXMFCONFIG ~/.texlive${TL_VERSION}/texmf-config
24 TEXMFLOCAL ${TL_ROOT}/texmf-local
25 TEXMFSYSCONFIG ${TL_ROOT}/${TL_VERSION}/texmf-config
26 TEXMFSYSVAR ${TL_ROOT}/${TL_VERSION}/texmf-var
27 TEXMFVAR ~/.texlive${TL_VERSION}/texmf-var
34 option_backupdir tlpkg/backups
35 option_desktop_integration 0
40 option_menu_integration 1
44 option_sys_bin $PREFIX/bin
45 option_sys_info $PREFIX/local/share/info
46 option_sys_man $PREFIX/local/share/man
47 option_w32_multi_user 0
48 option_write18_restricted 1
53 #start installer with a profile and premade binaries
54 perl .
/install-tl
--custom-bin
=$TL_ROOT/${TL_VERSION}/bin
/pkg
--profile texlive_inst.profile
56 mkdir
-p
$PREFIX/etc
/profile.d
/
58 cat > $PREFIX/etc
/profile.d
/texlive.sh
<< XXHEREXX
59 export PATH=\$PATH:$TL_ROOT/${TL_VERSION}/bin/custom
60 export TMPDIR=$PREFIX/tmp/
64 sed -E
-i
"s@/bin/sh@$PREFIX/bin/sh@" ${TL_ROOT}/${TL_VERSION}/tlpkg
/TeXLive
/TLUtils.pm
66 #source the environment
67 .
$PREFIX/etc
/profile.d
/texlive.sh
72 rm -rdf
$TMPDIR/termux-tl-installer