New Package: texlive-bin Official Unic installer of TeXLive
Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
20f6b92873
commit
7289f2a4d6
|
@ -0,0 +1,45 @@
|
||||||
|
#
|
||||||
|
# This script will advise the user of the needed
|
||||||
|
# steps to install and configure TeXLive
|
||||||
|
# and to re-login or source to have TeXLive included in PATH
|
||||||
|
#
|
||||||
|
case "${ACTION}" in
|
||||||
|
pre)
|
||||||
|
;;
|
||||||
|
post)
|
||||||
|
#cd /opt/texlive-installer
|
||||||
|
#./install-tl -profile void.profile
|
||||||
|
|
||||||
|
|
||||||
|
cat << _EOF
|
||||||
|
=====================================================================
|
||||||
|
|
||||||
|
- TeXLive is free software see the files:
|
||||||
|
|
||||||
|
in /opt/texlive-installer/LICENSE.TL
|
||||||
|
in /opt/texlive-installer/LICENSE.CTAN
|
||||||
|
|
||||||
|
install-tl is smart enough to guess your architecture during the
|
||||||
|
installation.
|
||||||
|
|
||||||
|
The template take care of adding the installation PATH of texlive
|
||||||
|
in /etc/profile.d/texlive.sh.
|
||||||
|
|
||||||
|
Setting it /opt/texlive/????/bin/<arch> where ???? is the year of
|
||||||
|
the TeXLive version and arch is:
|
||||||
|
- X86_64-linux ==> voidlinux X86_64 architecture
|
||||||
|
- i386-linux ==> voidlinux i386 architecture
|
||||||
|
|
||||||
|
At the next reboot the PATH is correct, if you want you can type
|
||||||
|
|
||||||
|
$ sudo source /etc/profile
|
||||||
|
|
||||||
|
check if it is ok with:
|
||||||
|
|
||||||
|
$ printenv
|
||||||
|
|
||||||
|
=====================================================================
|
||||||
|
_EOF
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# This script will clear the TeXLive directory
|
||||||
|
# and the /etc/profile.d/texlive.sh
|
||||||
|
#
|
||||||
|
case "${ACTION}" in
|
||||||
|
pre)
|
||||||
|
rm -rf /opt/texlive/2013
|
||||||
|
;;
|
||||||
|
post)
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -0,0 +1,3 @@
|
||||||
|
#location of the TeXLive binaries
|
||||||
|
export PATH=$PATH:/opt/texlive/2013/bin/i386-linux
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#location of the TeXLive binaries
|
||||||
|
export PATH=$PATH:/opt/texlive/2013/bin/x86_64-linux
|
|
@ -0,0 +1,8 @@
|
||||||
|
# texlive.profile written for voidlinux
|
||||||
|
TEXDIR /opt/texlive/2013
|
||||||
|
TEXMFCONFIG ~/.texlive2013/texmf-config
|
||||||
|
TEXMFHOME ~/texmf
|
||||||
|
TEXMFLOCAL /opt/texlive/texmf-local
|
||||||
|
TEXMFSYSCONFIG /opt/texlive/2013/texmf-config
|
||||||
|
TEXMFSYSVAR /opt/texlive/2013/texmf-var
|
||||||
|
TEXMFVAR ~/.texlive2013/texmf-var
|
|
@ -0,0 +1,57 @@
|
||||||
|
# Template file for 'texlive-bin'
|
||||||
|
pkgname=texlive-bin
|
||||||
|
version=2013
|
||||||
|
revision=1
|
||||||
|
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
|
||||||
|
homepage="http://tug.org/texlive/"
|
||||||
|
license="GPL-2"
|
||||||
|
short_desc="Texlive Binary distribution through tl-install"
|
||||||
|
provides="textlive-${version}_${revision}"
|
||||||
|
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="8b200e78b87899349404bdc58b47241291ba7a74846b816a926b02c2fe20aca7"
|
||||||
|
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}/*irix
|
||||||
|
rm ${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux
|
||||||
|
rm ${_dir}/*arm??-linux ${_dir}/*mipsel-linux
|
||||||
|
rm -rf ${wrksrc}/install-tl*/tlpkg/installer/wget
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install(){
|
||||||
|
vmkdir opt/texlive-installer
|
||||||
|
vcopy "install-tl-*/*" /opt/texlive-installer
|
||||||
|
vinstall ${FILESDIR}/void.tmpl 644 opt/texlive-installer void.profile
|
||||||
|
if [ "$build_options_default" = "basic" ]; then
|
||||||
|
echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
||||||
|
elif [ "$build_options_default" = "small" ]; then
|
||||||
|
echo "selected_scheme scheme-small" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
||||||
|
elif [ "$build_options_default" = "medium" ];then
|
||||||
|
echo "selected_scheme scheme-medium" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
||||||
|
elif [ "$build_options_default" = "full" ];then
|
||||||
|
echo "selected_scheme scheme-full" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
||||||
|
fi
|
||||||
|
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive
|
||||||
|
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive
|
||||||
|
# For system environment vars and desktop extra shortcut
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686) vinstall ${FILESDIR}/texlive.sh.i686 644 etc/profile.d texlive.sh ;;
|
||||||
|
x86_64) vinstall ${FILESDIR}/texlive.sh.x86_64 644 etc/profile.d texlive.sh ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue