1 TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/
2 TERMUX_PKG_DESCRIPTION="TeX Live is a distribution of the TeX typesetting system."
3 TERMUX_PKG_VERSION=20160523
4 TERMUX_PKG_SRCURL=ftp://tug.org/historic/systems/texlive/${TERMUX_PKG_VERSION:0:4}/texlive-${TERMUX_PKG_VERSION}b-source.tar.xz
5 TERMUX_PKG_SHA256="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
6 TERMUX_PKG_DEPENDS="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler"
7 TERMUX_PKG_FOLDERNAME=texlive-${TERMUX_PKG_VERSION}-source
8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
13 --prefix=$TERMUX_PREFIX \
14 --build=$TERMUX_BUILD_TUPLE \
16 --enable-makeindexk=no \
19 --enable-musixtnt=no \
22 --enable-gregorio=no \
23 --disable-native-texlive-build \
28 --disable-multiplatform \
39 --with-system-graphite2 \
40 --with-system-harfbuzz \
46 --with-system-poppler \
50 --with-banner-add=/Termux"
52 termux_step_post_extract_package () {
53 rm -r $TERMUX_PKG_SRCDIR/utils/pmx
56 termux_step_post_make_install () {
57 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl $TERMUX_PREFIX/bin
60 termux_step_create_debscripts () {
61 echo 'echo "retrieving texlive..."' > postinst
62 echo "termux-install-tl" >> postinst
63 echo "exit 0" >> postinst