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}
7 TERMUX_PKG_SRCURL
=ftp://tug.org
/historic
/systems
/texlive
/${TERMUX_PKG_VERSION:0:4}/texlive-
${TERMUX_PKG_VERSION}-source.
tar.xz
8 TERMUX_PKG_SHA256
="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
9 TERMUX_PKG_DEPENDS
="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler, libgraphite, harfbuzz-icu, perl, xz-utils, wget"
10 TERMUX_PKG_FOLDERNAME
=texlive-
${_MAJOR_VERSION}-source
12 # change the bin directory to "$TERMUX_PREFIX/opt/texlive/2016/bin/pkg" because the installer will symlink this to the actual bin dir..
13 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="
18 ac_cv_c_bigendian=no \
19 --prefix=$TERMUX_PREFIX/opt/texlive/${TERMUX_PKG_VERSION:0:4} \
20 --bindir=$TERMUX_PREFIX/opt/texlive/${TERMUX_PKG_VERSION:0:4}/bin/pkg \
21 --libdir=$TERMUX_PREFIX/lib \
22 --build=$TERMUX_BUILD_TUPLE \
24 --enable-makeindexk=no \
27 --enable-musixtnt=no \
30 --enable-gregorio=no \
31 --disable-native-texlive-build \
36 --disable-multiplatform \
48 --with-system-graphite2 \
49 --with-system-harfbuzz \
55 --with-system-poppler \
60 --with-banner-add=/Termux"
62 termux_step_post_extract_package
() {
63 rm -rdf
$TERMUX_PKG_SRCDIR/libs
/luajit
66 termux_step_pre_configure
() {
67 # When building against libicu 59.1 or later we need c++11:
68 CXXFLAGS
+=" -std=c++11"
71 termux_step_post_make_install
() {
72 mkdir
-p
$TERMUX_PREFIX/share
/man
/man
{1,5}/
73 mv $TERMUX_PREFIX/opt
/texlive
/2016/share
/man
/man1
/* $TERMUX_PREFIX/share
/man
/man1
/
74 mv $TERMUX_PREFIX/opt
/texlive
/2016/share
/man
/man5
/* $TERMUX_PREFIX/share
/man
/man5
/
75 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl.sh
$TERMUX_PREFIX/bin
/termux-install-tl
78 termux_step_create_debscripts
() {
79 echo 'echo "========================================================"' > postinst
80 echo 'echo "retrieving texlive..."' >> postinst
81 echo 'echo "you can start this manually by calling termux-install-tl"' >> postinst
82 echo 'echo "========================================================"' >> postinst
83 echo "termux-install-tl" >> postinst
84 echo "exit 0" >> postinst