1 # --- T2-COPYRIGHT-BEGIN ---
2 # t2/package/*/texlive/texlive.conf
3 # Copyright (C) 2010 - 2025 The T2 SDE Project
4 # SPDX-License-Identifier: GPL-2.0
5 # --- T2-COPYRIGHT-END ---
7 [ $prefix_auto = 1 ] && prefix="/opt/texlive" && set_confopt
13 texlive_source_unpack() {
14 tar --use-compress-program xz -xf `match_source_file -p source`
16 hook_add preconf 3 "texlive_source_unpack"
18 texlive_source_build() {
19 cd $builddir/texlive-*-source
20 eval env TL_INSTALL_DEST=/$prefix TL_MAKE_FLAGS=-j$SDECFG_PARALLEL \
21 TL_BUILD_ENV="LDFLAGS=-L$root$(pkgprefix libdir libx11)" \
22 ./Build --disable-xindy --disable-multiplatform
24 hook_add inmake 5 "texlive_source_build"
26 texlive_texmf_install() {
27 tar -C /$prefix --strip-components 1 --use-compress-program xz -xf `match_source_file -p texmf`
29 hook_add postinstall 5 "texlive_texmf_install"