2018-05-17 18:09:24 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/tlmgr.html
|
2018-05-05 23:30:36 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="TeX Lives package manager"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2018-05-05 23:30:36 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
2019-04-30 17:14:19 +02:00
|
|
|
TERMUX_PKG_VERSION=20190410
|
2019-08-11 18:37:34 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2019-04-30 17:14:19 +02:00
|
|
|
TERMUX_PKG_SRCURL=ftp://ftp.tug.org/texlive/historic/${TERMUX_PKG_VERSION:0:4}/install-tl-unx.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=44aa41b5783e345b7021387f19ac9637ff1ce5406a59754230c666642dfe7750
|
2019-08-11 18:37:34 +02:00
|
|
|
TERMUX_PKG_DEPENDS="perl, wget, gnupg (>= 2.2.9-1), xz-utils, texlive (>= 20190410)"
|
2018-05-05 23:30:36 +02:00
|
|
|
TERMUX_PKG_CONFFILES="share/texlive/tlpkg/texlive.tlpdb"
|
|
|
|
TERMUX_PKG_CONFLICTS="texlive (<< 20180414-1)"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-05-05 23:30:36 +02:00
|
|
|
|
|
|
|
TL_ROOT=$TERMUX_PREFIX/share/texlive
|
|
|
|
TL_BINDIR=$TERMUX_PREFIX/bin
|
|
|
|
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make() {
|
2018-05-05 23:30:36 +02:00
|
|
|
mkdir -p $TL_ROOT/{tlpkg/{backups,tlpobj},texmf-var/web2c}
|
2018-08-28 09:08:07 +02:00
|
|
|
cp -r $TERMUX_PKG_BUILDDIR/* $TL_ROOT/
|
2018-05-05 23:30:36 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/texlive.tlpdb $TL_ROOT/tlpkg/
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2018-05-05 23:30:36 +02:00
|
|
|
# Replace tlmgr link with a small wrapper that prevents error on "tlmgr update --self"
|
|
|
|
rm -rf $TL_BINDIR/tlmgr
|
|
|
|
ln -sf ../share/texlive/texmf-dist/scripts/texlive/tlmgr.pl $TL_BINDIR/tlmgr.ln
|
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > $TL_BINDIR/tlmgr
|
|
|
|
echo "termux-fix-shebang $TL_ROOT/texmf-dist/scripts/texlive/tlmgr.pl" >> $TL_BINDIR/tlmgr
|
|
|
|
echo "sed -i 's%\`kpsewhich -var-value=SELFAUTOPARENT\`);%\`kpsewhich -var-value=TEXMFROOT\`);%g' $TL_ROOT/texmf-dist/scripts/texlive/tlmgr.pl" >> $TL_BINDIR/tlmgr
|
|
|
|
echo "sed -i 's%TEXMFROOT = \$SELFAUTOPARENT%TEXMFROOT = \$SELFAUTODIR/share/texlive%g' $TL_ROOT/texmf-dist/web2c/texmf.cnf" >> $TL_BINDIR/tlmgr
|
|
|
|
echo "sed -i '"'s@`/bin/sh@`'$TERMUX_PREFIX"/bin/sh@g' ${TL_ROOT}/tlpkg/TeXLive/TLUtils.pm" >> $TL_BINDIR/tlmgr
|
|
|
|
echo 'tlmgr.ln "$@"' >> $TL_BINDIR/tlmgr
|
|
|
|
chmod 0744 $TL_BINDIR/tlmgr
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2018-05-05 23:30:36 +02:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/bash" > postinst
|
|
|
|
echo "mkdir -p $TL_ROOT/{tlpkg/{backups,tlpobj},texmf-var/{web2c,tex/generic/config}}" >> postinst
|
|
|
|
echo "export TMPDIR=$TERMUX_PREFIX/tmp" >> postinst
|
|
|
|
echo "echo Updating tlmgr" >> postinst
|
|
|
|
echo "tlmgr update --self" >> postinst
|
|
|
|
echo "echo Generating language files and setting up symlinks" >> postinst
|
|
|
|
echo "tlmgr -q generate language" >> postinst
|
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
|
|
|
# Don't remove installed stuff on removal, do that in the pkg texlive instead.
|
|
|
|
}
|
|
|
|
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
share/texlive/LICENSE.TL
|
|
|
|
share/texlive/LICENSE.CTAN
|
|
|
|
share/texlive/release-texlive.txt
|
|
|
|
share/texlive/install-tl
|
2019-03-31 22:02:37 +02:00
|
|
|
share/texlive/tlpkg/TeXLive
|
2018-05-05 23:30:36 +02:00
|
|
|
share/texlive/texmf-dist/scripts/texlive/uninstall-win32.pl
|
2019-03-31 22:02:37 +02:00
|
|
|
share/texlive/texmf-dist/scripts/texlive/uninstq.vbs
|
2018-05-05 23:30:36 +02:00
|
|
|
share/texlive/texmf-dist/scripts/texlive/tlmgr-gui.pl
|
|
|
|
share/texlive/texmf-dist/web2c
|
|
|
|
share/texlive/tlpkg/installer/COPYING.MinGW-runtime.txt
|
|
|
|
share/texlive/tlpkg/installer/install-menu-perltk.pl
|
|
|
|
share/texlive/tlpkg/installer/install-menu-text.pl
|
|
|
|
share/texlive/tlpkg/installer/install-menu-wizard.pl
|
|
|
|
share/texlive/tlpkg/installer/install-tl.html
|
|
|
|
share/texlive/tlpkg/installer/installer-options.txt
|
|
|
|
share/texlive/tlpkg/installer/texlive.png
|
|
|
|
share/texlive/tlpkg/installer/tl-cmd.bat
|
|
|
|
share/texlive/tlpkg/installer/tl-tray-menu.ini
|
|
|
|
share/texlive/tlpkg/installer/tracked-install.pl
|
|
|
|
share/texlive/tlpkg/installer/wget
|
|
|
|
share/texlive/tlpkg/installer/xz"
|