1 TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/
2 TERMUX_PKG_DESCRIPTION="TeX Live is a distribution of the TeX typesetting system."
3 _MAJOR_VERSION=20160523
5 TERMUX_PKG_VERSION=${_MAJOR_VERSION}${_MINOR_VERSION}
6 TERMUX_PKG_SRCURL=ftp://tug.org/historic/systems/texlive/${TERMUX_PKG_VERSION:0:4}/texlive-${TERMUX_PKG_VERSION}-source.tar.xz
7 TERMUX_PKG_SHA256="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
8 TERMUX_PKG_DEPENDS="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler, libgraphite, harfbuzz-icu, perl, xz-utils"
9 TERMUX_PKG_FOLDERNAME=texlive-${_MAJOR_VERSION}-source
11 # change the bin directory to "$TERMUX_PREFIX/opt/texlive/2016/bin/pkg" because the installer will symlink this to the actual bin dir..
12 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
17 --prefix=$TERMUX_PREFIX/opt/texlive/${TERMUX_PKG_VERSION:0:4} \
18 --bindir=$TERMUX_PREFIX/opt/texlive/${TERMUX_PKG_VERSION:0:4}/bin/pkg \
19 --libdir=$TERMUX_PREFIX/lib \
20 --build=$TERMUX_BUILD_TUPLE \
22 --enable-makeindexk=no \
25 --enable-musixtnt=no \
28 --enable-gregorio=no \
29 --disable-native-texlive-build \
34 --disable-multiplatform \
46 --with-system-graphite2 \
47 --with-system-harfbuzz \
53 --with-system-poppler \
58 --with-banner-add=/Termux"
60 termux_step_post_extract_package () {
61 rm -rdf $TERMUX_PKG_SRCDIR/libs/luajit
64 termux_step_post_make_install () {
65 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl.sh $TERMUX_PREFIX/bin/termux-install-tl
68 termux_step_create_debscripts () {
69 echo 'echo "========================================================"' > postinst
70 echo 'echo "retrieving texlive..."' >> postinst
71 echo 'echo "you can start this manually by calling termux-install-tl"' >> postinst
72 echo 'echo "========================================================"' >> postinst
73 echo "termux-install-tl" >> postinst
74 echo "exit 0" >> postinst