colordiff: Update from 1.0.16 to 1.0.18
[termux-packages] / packages / texlive / build.sh
CommitLineData
cb2a32e4 1TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/
2TERMUX_PKG_DESCRIPTION="TeX Live is a distribution of the TeX typesetting system."
d415b125 3_MAJOR_VERSION=20160523
4_MINOR_VERSION=b
5TERMUX_PKG_VERSION=${_MAJOR_VERSION}${_MINOR_VERSION}
29b48a56 6TERMUX_PKG_REVISION=2
d415b125 7TERMUX_PKG_SRCURL=ftp://tug.org/historic/systems/texlive/${TERMUX_PKG_VERSION:0:4}/texlive-${TERMUX_PKG_VERSION}-source.tar.xz
cb2a32e4 8TERMUX_PKG_SHA256="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
29b48a56 9TERMUX_PKG_DEPENDS="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler, libgraphite, harfbuzz-icu, perl, xz-utils, wget"
d415b125 10TERMUX_PKG_FOLDERNAME=texlive-${_MAJOR_VERSION}-source
11
12# change the bin directory to "$TERMUX_PREFIX/opt/texlive/2016/bin/pkg" because the installer will symlink this to the actual bin dir..
b6c7cb34 13TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
cb2a32e4 14AR=ar \
15RANLIB=ranlib \
16BUILDAR=ar \
17BUILDRANLIB=ranlib \
86aeac04 18ac_cv_c_bigendian=no \
d415b125 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 \
cb2a32e4 22--build=$TERMUX_BUILD_TUPLE \
290d898d
FF
23--enable-ttfdump=no \
24--enable-makeindexk=no \
25--enable-makejvf=no \
26--enable-mendexk=no \
27--enable-musixtnt=no \
28--enable-ps2pk=no \
29--enable-seetexk=no \
30--enable-gregorio=no \
cb2a32e4 31--disable-native-texlive-build \
290d898d
FF
32--disable-bibtexu \
33--disable-dvisvgm \
cb2a32e4 34--disable-dialog \
35--disable-psutils \
290d898d 36--disable-multiplatform \
cb2a32e4 37--disable-t1utils \
d415b125 38--enable-luatex \
290d898d
FF
39--disable-luajittex \
40--disable-mflua \
41--disable-mfluajit \
42--disable-xz \
d415b125 43--disable-pmx \
cb2a32e4 44--without-texinfo \
45--without-xdvipdfmx \
46--without-texi2html \
290d898d
FF
47--with-system-cairo \
48--with-system-graphite2 \
49--with-system-harfbuzz \
50--with-system-gd \
51--with-system-gmp \
cb2a32e4 52--with-system-icu \
290d898d
FF
53--with-system-lua \
54--with-system-mpfr \
cb2a32e4 55--with-system-poppler \
290d898d 56--with-system-zlib \
cb2a32e4 57--with-system-xpdf \
d415b125 58--with-system-lua \
290d898d
FF
59--without-x \
60--with-banner-add=/Termux"
cb2a32e4 61
290d898d 62termux_step_post_extract_package () {
86aeac04
FF
63 rm -rdf $TERMUX_PKG_SRCDIR/libs/luajit
64}
65
66termux_step_pre_configure() {
67 # When building against libicu 59.1 or later we need c++11:
68 CXXFLAGS+=" -std=c++11"
cb2a32e4 69}
70
71termux_step_post_make_install () {
d5585b75 72 mkdir -p $TERMUX_PREFIX/share/man/man{1,5}/
29b48a56
HG
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/
d415b125 75 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl.sh $TERMUX_PREFIX/bin/termux-install-tl
cb2a32e4 76}
77
78termux_step_create_debscripts () {
d415b125 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
290d898d
FF
83 echo "termux-install-tl" >> postinst
84 echo "exit 0" >> postinst
85 chmod 0755 postinst
cb2a32e4 86}