rnauber
8 years ago
committed by
Fredrik Fornwall
6 changed files with 104 additions and 72 deletions
@ -1,60 +0,0 @@ |
|||
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 |
@ -0,0 +1,72 @@ |
|||
|
|||
TL_VERSION=2016 |
|||
TL_ROOT=$PREFIX/opt/texlive |
|||
|
|||
export TMPDIR=$PREFIX/tmp/ |
|||
mkdir -p $TMPDIR/termux-tl-installer |
|||
cd $TMPDIR/termux-tl-installer |
|||
|
|||
wget -N http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz |
|||
tar xzfv install-tl-unx.tar.gz > flist |
|||
|
|||
cd $(head -1 flist) |
|||
|
|||
#patch install-tl |
|||
sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" tlpkg/TeXLive/TLUtils.pm |
|||
#This patch won't be needed after the next version of fmtutil.pl is released. |
|||
sed -i "s@fmtutil-sys \$common_fmtutil_args --no-strict --all@fmtutil-sys \$common_fmtutil_args --all@" install-tl |
|||
cat > texlive_inst.profile << XXHEREXX |
|||
|
|||
selected_scheme scheme-custom |
|||
TEXDIR ${TL_ROOT}/${TL_VERSION} |
|||
TEXMFCONFIG ~/.texlive${TL_VERSION}/texmf-config |
|||
TEXMFHOME ~/texmf |
|||
TEXMFLOCAL ${TL_ROOT}/texmf-local |
|||
TEXMFSYSCONFIG ${TL_ROOT}/${TL_VERSION}/texmf-config |
|||
TEXMFSYSVAR ${TL_ROOT}/${TL_VERSION}/texmf-var |
|||
TEXMFVAR ~/.texlive${TL_VERSION}/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 |
|||
|
|||
XXHEREXX |
|||
|
|||
#start installer with a profile and premade binaries |
|||
perl ./install-tl --custom-bin=$TL_ROOT/${TL_VERSION}/bin/pkg --profile texlive_inst.profile |
|||
|
|||
mkdir -p $PREFIX/etc/profile.d/ |
|||
|
|||
cat > $PREFIX/etc/profile.d/texlive.sh << XXHEREXX |
|||
export PATH=\$PATH:$TL_ROOT/${TL_VERSION}/bin/custom |
|||
export TMPDIR=$PREFIX/tmp/ |
|||
XXHEREXX |
|||
|
|||
#fix tlpkg |
|||
sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" ${TL_ROOT}/${TL_VERSION}/tlpkg/TeXLive/TLUtils.pm |
|||
|
|||
#source the environment |
|||
. $PREFIX/etc/profile.d/texlive.sh |
|||
|
|||
#setup links |
|||
texlinks |
|||
|
|||
rm -rdf $TMPDIR/termux-tl-installer |
Loading…
Reference in new issue