texlive: Some work in progress
[termux-packages] / packages / texlive / build.sh
... / ...
CommitLineData
1TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/
2TERMUX_PKG_DESCRIPTION="TeX Live is a distribution of the TeX typesetting system."
3TERMUX_PKG_VERSION=20160523
4TERMUX_PKG_SRCURL=ftp://tug.org/historic/systems/texlive/${TERMUX_PKG_VERSION:0:4}/texlive-${TERMUX_PKG_VERSION}b-source.tar.xz
5TERMUX_PKG_SHA256="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed"
6TERMUX_PKG_DEPENDS="freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler"
7TERMUX_PKG_FOLDERNAME=texlive-${TERMUX_PKG_VERSION}-source
8TERMUX_PKG_EXTRA_CONFIGURE_ARGS="\
9AR=ar \
10RANLIB=ranlib \
11BUILDAR=ar \
12BUILDRANLIB=ranlib \
13--prefix=$TERMUX_PREFIX \
14--build=$TERMUX_BUILD_TUPLE \
15--enable-ttfdump=no \
16--enable-makeindexk=no \
17--enable-makejvf=no \
18--enable-mendexk=no \
19--enable-musixtnt=no \
20--enable-ps2pk=no \
21--enable-seetexk=no \
22--enable-gregorio=no \
23--disable-native-texlive-build \
24--disable-bibtexu \
25--disable-dvisvgm \
26--disable-dialog \
27--disable-psutils \
28--disable-multiplatform \
29--disable-t1utils \
30--disable-luatex \
31--disable-luajittex \
32--disable-mflua \
33--disable-mfluajit \
34--disable-xz \
35--without-texinfo \
36--without-xdvipdfmx \
37--without-texi2html \
38--with-system-cairo \
39--with-system-graphite2 \
40--with-system-harfbuzz \
41--with-system-gd \
42--with-system-gmp \
43--with-system-icu \
44--with-system-lua \
45--with-system-mpfr \
46--with-system-poppler \
47--with-system-zlib \
48--with-system-xpdf \
49--without-x \
50--with-banner-add=/Termux"
51
52termux_step_post_extract_package () {
53 rm -r $TERMUX_PKG_SRCDIR/utils/pmx
54}
55
56termux_step_post_make_install () {
57 cp $TERMUX_PKG_BUILDER_DIR/termux-install-tl $TERMUX_PREFIX/bin
58}
59
60termux_step_create_debscripts () {
61 echo 'echo "retrieving texlive..."' > postinst
62 echo "termux-install-tl" >> postinst
63 echo "exit 0" >> postinst
64 chmod 0755 postinst
65}