New package: texlive2014-bin

This commit is contained in:
Christian Neukirchen 2014-07-08 16:18:46 +02:00
parent 13a7186054
commit f29b59c4fd
5 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,6 @@
case "${ACTION}" in
post)
cd /opt/texlive2014-installer
./install-tl -profile void.profile
esac

View file

@ -0,0 +1,27 @@
=====================================================================
- TeXLive is free software see the files:
/usr/share/licenses/texlive2014-bin/LICENSE.TL
/usr/share/licenses/texlive2014-bin/LICENSE.CTAN
=====================================================================
To update you TeXLive installation use only the program
/opt/texlive/2014/<arch>/tlmgr
where <arch> 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.
=====================================================================

View file

@ -0,0 +1,7 @@
# This script will clear the TeXLive directory
#
case "${ACTION}" in
post)
rm -rf /opt/texlive/2014
;;
esac

View file

@ -0,0 +1,8 @@
# texlive.profile written for voidlinux
TEXDIR /opt/texlive/2014
TEXMFCONFIG ~/.texlive2014/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /opt/texlive/texmf-local
TEXMFSYSCONFIG /opt/texlive/2014/texmf-config
TEXMFSYSVAR /opt/texlive/2014/texmf-var
TEXMFVAR ~/.texlive2014/texmf-var

View file

@ -0,0 +1,58 @@
# Template file for 'texlive-bin'
pkgname=texlive2014-bin
version=2014
revision=1
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="http://tug.org/texlive/"
license="GPL-2"
short_desc="TeX Live Binary distribution through tl-install"
depends="cairo pixman graphite t1lib gd poppler libsigsegv
zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
ghostscript"
only_for_archs="i686 x86_64"
distfiles="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz"
checksum=84e3cc7c1e4583fbdea6f8ad21eb9a4b5a112239dbbefffa388833f946d91aec
create_wrksrc=yes
# Package build options
build_options="basic small medium full"
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"
build_options_default="small"
pre_install(){
_dir="${wrksrc}/install-tl*/tlpkg/installer/xz"
rm ${_dir}/*exe ${_dir}/*bsd ${_dir}/*solaris \
${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux \
${_dir}/*arm??-linux ${_dir}/*mipsel-linux \
rm -rf ${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_options_default" = "basic" ]; then
echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile
elif [ "$build_options_default" = "small" ]; then
echo "selected_scheme scheme-small" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile
elif [ "$build_options_default" = "medium" ];then
echo "selected_scheme scheme-medium" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile
elif [ "$build_options_default" = "full" ];then
echo "selected_scheme scheme-full" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile
fi
vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN
vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL
# For system environment vars and desktop extra shortcut
case "$XBPS_TARGET_MACHINE" in
i686)
rm ${DESTDIR}/opt/texlive${version}-installer/tlpkg/installer/xz/xzdec.x86_64-linux
;;
x86_64)
rm ${DESTDIR}/opt/texlive${version}-installer/tlpkg/installer/xz/xzdec.i386-linux
;;
esac
}