From 7b2e3df1408e1b1a9c6ff0234be05730a9b93ff9 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 15 Jun 2015 14:04:58 +0200 Subject: [PATCH] New package: texlive2015-bin-2015 --- srcpkgs/texlive2015-bin/INSTALL | 6 +++ srcpkgs/texlive2015-bin/INSTALL.msg | 23 +++++++++++ srcpkgs/texlive2015-bin/REMOVE | 7 ++++ srcpkgs/texlive2015-bin/files/void.profile | 8 ++++ srcpkgs/texlive2015-bin/template | 44 ++++++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 srcpkgs/texlive2015-bin/INSTALL create mode 100644 srcpkgs/texlive2015-bin/INSTALL.msg create mode 100644 srcpkgs/texlive2015-bin/REMOVE create mode 100644 srcpkgs/texlive2015-bin/files/void.profile create mode 100644 srcpkgs/texlive2015-bin/template diff --git a/srcpkgs/texlive2015-bin/INSTALL b/srcpkgs/texlive2015-bin/INSTALL new file mode 100644 index 00000000000..e6a7c1749aa --- /dev/null +++ b/srcpkgs/texlive2015-bin/INSTALL @@ -0,0 +1,6 @@ +case "${ACTION}" in +post) + cd opt/texlive2015-installer + ./install-tl -profile void.profile +esac + diff --git a/srcpkgs/texlive2015-bin/INSTALL.msg b/srcpkgs/texlive2015-bin/INSTALL.msg new file mode 100644 index 00000000000..21de397ebb6 --- /dev/null +++ b/srcpkgs/texlive2015-bin/INSTALL.msg @@ -0,0 +1,23 @@ +- TeXLive is free software see the files: + + /usr/share/licenses/texlive2015-bin/LICENSE.TL + /usr/share/licenses/texlive2015-bin/LICENSE.CTAN + +===================================================================== + + To update you TeXLive installation use only the program + + /opt/texlive/2015//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. diff --git a/srcpkgs/texlive2015-bin/REMOVE b/srcpkgs/texlive2015-bin/REMOVE new file mode 100644 index 00000000000..ad9450aae27 --- /dev/null +++ b/srcpkgs/texlive2015-bin/REMOVE @@ -0,0 +1,7 @@ +# This script will clear the TeXLive directory +# +case "${ACTION}" in +post) + rm -rf opt/texlive/2015 + ;; +esac diff --git a/srcpkgs/texlive2015-bin/files/void.profile b/srcpkgs/texlive2015-bin/files/void.profile new file mode 100644 index 00000000000..6af1f340e59 --- /dev/null +++ b/srcpkgs/texlive2015-bin/files/void.profile @@ -0,0 +1,8 @@ +# texlive.profile written for voidlinux +TEXDIR /opt/texlive/2015 +TEXMFCONFIG ~/.texlive2015/texmf-config +TEXMFHOME ~/texmf +TEXMFLOCAL /opt/texlive/texmf-local +TEXMFSYSCONFIG /opt/texlive/2015/texmf-config +TEXMFSYSVAR /opt/texlive/2015/texmf-var +TEXMFVAR ~/.texlive2015/texmf-var diff --git a/srcpkgs/texlive2015-bin/template b/srcpkgs/texlive2015-bin/template new file mode 100644 index 00000000000..477c1c5b668 --- /dev/null +++ b/srcpkgs/texlive2015-bin/template @@ -0,0 +1,44 @@ +# Template file for 'texlive-bin' +pkgname=texlive2015-bin +version=2015 +revision=1 +maintainer="Christian 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="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" +checksum=07068482b8d99811a6328fd4c7e19379d0d947c8c26a895a8e3c91a49f63b7f9 +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 +}