From 2f6416d97a92768a7fc84a6fc629f594b27012fa Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 13 Apr 2020 15:22:31 +0200 Subject: [PATCH] New package: texlive2020-bin-2020 --- srcpkgs/texlive2020-bin/INSTALL | 15 ++++++++ srcpkgs/texlive2020-bin/INSTALL.msg | 25 ++++++++++++ srcpkgs/texlive2020-bin/REMOVE | 8 ++++ srcpkgs/texlive2020-bin/files/void.profile | 8 ++++ srcpkgs/texlive2020-bin/template | 45 ++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 srcpkgs/texlive2020-bin/INSTALL create mode 100644 srcpkgs/texlive2020-bin/INSTALL.msg create mode 100644 srcpkgs/texlive2020-bin/REMOVE create mode 100644 srcpkgs/texlive2020-bin/files/void.profile create mode 100644 srcpkgs/texlive2020-bin/template diff --git a/srcpkgs/texlive2020-bin/INSTALL b/srcpkgs/texlive2020-bin/INSTALL new file mode 100644 index 00000000000..8168e595b30 --- /dev/null +++ b/srcpkgs/texlive2020-bin/INSTALL @@ -0,0 +1,15 @@ +case "${ACTION}" in +post) + case "${UPDATE}" in + no) + cd opt/texlive2020-installer + case "${ARCH}" in + x86_64-musl) + ./install-tl -profile void.profile -force-platform x86_64-linuxmusl + ;; + *) + ./install-tl -profile void.profile + ;; + esac + esac +esac diff --git a/srcpkgs/texlive2020-bin/INSTALL.msg b/srcpkgs/texlive2020-bin/INSTALL.msg new file mode 100644 index 00000000000..21f3c213ec0 --- /dev/null +++ b/srcpkgs/texlive2020-bin/INSTALL.msg @@ -0,0 +1,25 @@ +- TeXLive is free software see the files: + + /usr/share/licenses/texlive2020-bin/LICENSE.TL + /usr/share/licenses/texlive2020-bin/LICENSE.CTAN + +===================================================================== + + To update you TeXLive installation use only the program + + /opt/texlive/2020/bin//tlmgr + + where is: + - x86_64-linux ==> x86_64 architecture + - i386-linux ==> i386 architecture + + see: + + http://www.tug.org/texlive/doc/tlmgr.html#EXAMPLES + + for the details and the documentation in + + WARNING: To avoid messing up your TeXLive installation, DON'T use + the installation scripts in /opt/texlive-installer. + + For a full installation, run "tlmgr install scheme-full". diff --git a/srcpkgs/texlive2020-bin/REMOVE b/srcpkgs/texlive2020-bin/REMOVE new file mode 100644 index 00000000000..9115389c3e5 --- /dev/null +++ b/srcpkgs/texlive2020-bin/REMOVE @@ -0,0 +1,8 @@ +# This script will clear the TeXLive directory +# +case "${ACTION}" in +post) + rm -rf opt/texlive/2020 + rm -r opt/texlive2020-installer + ;; +esac diff --git a/srcpkgs/texlive2020-bin/files/void.profile b/srcpkgs/texlive2020-bin/files/void.profile new file mode 100644 index 00000000000..01a249c2c07 --- /dev/null +++ b/srcpkgs/texlive2020-bin/files/void.profile @@ -0,0 +1,8 @@ +# texlive.profile written for voidlinux +TEXDIR ../texlive/2020 +TEXMFCONFIG ~/.texlive2020/texmf-config +TEXMFHOME ~/texmf +TEXMFLOCAL ../texlive/texmf-local +TEXMFSYSCONFIG ../texlive/2020/texmf-config +TEXMFSYSVAR ../texlive/2020/texmf-var +TEXMFVAR ~/.texlive2020/texmf-var diff --git a/srcpkgs/texlive2020-bin/template b/srcpkgs/texlive2020-bin/template new file mode 100644 index 00000000000..ee7f347cc25 --- /dev/null +++ b/srcpkgs/texlive2020-bin/template @@ -0,0 +1,45 @@ +# Template file for 'texlive-bin' +pkgname=texlive2020-bin +version=2020 +revision=1 +archs="x86_64* i686 aarch64 arm*" +maintainer="Leah Neukirchen " +homepage="http://tug.org/texlive/" +license="GPL-2" +short_desc="TeX Live Binary distribution through tl-install" +depends="cairo pixman graphite gd poppler libsigsegv + zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl + ghostscript xz" +distfiles="ftp://ftp.tug.org/texlive/historic/${version}/install-tl-unx.tar.gz>${pkgname}-${version}-${revision}.tar.gz" +checksum=7c90a50e55533d57170cbc7c0370a010019946eb18570282948e1af6f809382d +create_wrksrc=yes + +# Package build options +build_options="basic small medium full" +build_options_default="small" +desc_option_basic="Install TeXLive using scheme-basic" +desc_option_small="Install TeXLive using scheme-small" +desc_option_medium="Install TeXLive using scheme-medium" +desc_option_full="Install TeXLive using scheme-full" + +pre_install() { + rm -rf ${wrksrc}/install-tl*/tlpkg/installer/xz \ + ${wrksrc}/install-tl*/tlpkg/installer/wget +} + +do_install() { + vmkdir opt/texlive${version}-installer + vcopy "install-tl-*/*" /opt/texlive${version}-installer + vinstall ${FILESDIR}/void.profile 644 opt/texlive${version}-installer + if [ "$build_option_basic" ]; then + echo "selected_scheme scheme-basic" + elif [ "$build_option_small" ]; then + echo "selected_scheme scheme-small" + elif [ "$build_option_medium" = "medium" ];then + echo "selected_scheme scheme-medium" + elif [ "$build_option_full" ];then + echo "selected_scheme scheme-full" + fi >>${DESTDIR}/opt/texlive${version}-installer/void.profile + vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN + vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL +}