memcached: add package (#950)
[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}
6TERMUX_PKG_SRCURL=ftp://tug.org/historic/systems/texlive/${TERMUX_PKG_VERSION:0:4}/texlive-${TERMUX_PKG_VERSION}-source.tar.xz
cb2a32e4 7TERMUX_PKG_SHA256="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
d415b125 8TERMUX_PKG_DEPENDS="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler, libgraphite, harfbuzz-icu, perl, xz-utils"
9TERMUX_PKG_FOLDERNAME=texlive-${_MAJOR_VERSION}-source
10
11# change the bin directory to "$TERMUX_PREFIX/opt/texlive/2016/bin/pkg" because the installer will symlink this to the actual bin dir..
b6c7cb34 12TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
cb2a32e4 13AR=ar \
14RANLIB=ranlib \
15BUILDAR=ar \
16BUILDRANLIB=ranlib \
d415b125 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 \
cb2a32e4 20--build=$TERMUX_BUILD_TUPLE \
290d898d
FF
21--enable-ttfdump=no \
22--enable-makeindexk=no \
23--enable-makejvf=no \
24--enable-mendexk=no \
25--enable-musixtnt=no \
26--enable-ps2pk=no \
27--enable-seetexk=no \
28--enable-gregorio=no \
cb2a32e4 29--disable-native-texlive-build \
290d898d
FF
30--disable-bibtexu \
31--disable-dvisvgm \
cb2a32e4 32--disable-dialog \
33--disable-psutils \
290d898d 34--disable-multiplatform \
cb2a32e4 35--disable-t1utils \
d415b125 36--enable-luatex \
290d898d
FF
37--disable-luajittex \
38--disable-mflua \
39--disable-mfluajit \
40--disable-xz \
d415b125 41--disable-pmx \
cb2a32e4 42--without-texinfo \
43--without-xdvipdfmx \
44--without-texi2html \
290d898d
FF
45--with-system-cairo \
46--with-system-graphite2 \
47--with-system-harfbuzz \
48--with-system-gd \
49--with-system-gmp \
cb2a32e4 50--with-system-icu \
290d898d
FF
51--with-system-lua \
52--with-system-mpfr \
cb2a32e4 53--with-system-poppler \
290d898d 54--with-system-zlib \
cb2a32e4 55--with-system-xpdf \
d415b125 56--with-system-lua \
290d898d
FF
57--without-x \
58--with-banner-add=/Termux"
cb2a32e4 59
290d898d 60termux_step_post_extract_package () {
d415b125 61 rm -rdf $TERMUX_PKG_SRCDIR/libs/luajit
cb2a32e4 62}
63
64termux_step_post_make_install () {
d5585b75
FF
65 mkdir -p $TERMUX_PREFIX/share/man/man{1,5}/
66 mv $TERMUX_PREFIX/opt/texlive/2016/share/man/man{1,5}/* $TERMUX_PREFIX/share/man/man1/
d415b125 67 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl.sh $TERMUX_PREFIX/bin/termux-install-tl
cb2a32e4 68}
69
70termux_step_create_debscripts () {
d415b125 71 echo 'echo "========================================================"' > postinst
72 echo 'echo "retrieving texlive..."' >> postinst
73 echo 'echo "you can start this manually by calling termux-install-tl"' >> postinst
74 echo 'echo "========================================================"' >> postinst
290d898d
FF
75 echo "termux-install-tl" >> postinst
76 echo "exit 0" >> postinst
77 chmod 0755 postinst
cb2a32e4 78}