texlive-bin: Modified package, with the advice given on IRC

This commit is contained in:
onekk 2014-04-30 15:36:17 +02:00
parent 7289f2a4d6
commit 3aa97b3a37
6 changed files with 44 additions and 33 deletions

View File

@ -1,14 +1,11 @@
# #
# This script will advise the user of the needed # This script will advise the user of the needed steps to
# steps to install and configure TeXLive # configure TeXLive and to have TeXLive included in PATH
# and to re-login or source to have TeXLive included in PATH
# #
case "${ACTION}" in case "${ACTION}" in
pre)
;;
post) post)
#cd /opt/texlive-installer cd /opt/texlive-installer
#./install-tl -profile void.profile ./install-tl -profile void.profile
cat << _EOF cat << _EOF
@ -16,27 +13,45 @@ post)
- TeXLive is free software see the files: - TeXLive is free software see the files:
in /opt/texlive-installer/LICENSE.TL /usr/share/licenses/texlive-bin/LICENSE.TL
in /opt/texlive-installer/LICENSE.CTAN /usr/share/licenses/texlive-bin/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 This package sets the location of TeXLive binary using the file:
in /etc/profile.d/texlive.sh. /etc/profile.d/texlive.sh.
Setting it /opt/texlive/????/bin/<arch> where ???? is the year of see http://www.tug.org/texlive/quickinstall.html for details
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 Check if your PATH is update correctly with:
$ printenv
You may need to reboot to ensure that PATH is update correctly,
for the impatients, if you want you can type
$ sudo source /etc/profile $ sudo source /etc/profile
check if it is ok with: and check the PATH.
$ printenv =====================================================================
To update you TeXLive installation use only the program
/opt/texlive/????/<arch>/tlmgr.
where the ???? is the TeXLive version and <arch> is:
- X86_64-linux ==> voidlinux X86_64 architecture
- i386-linux ==> voidlinux 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.
===================================================================== =====================================================================
_EOF _EOF

View File

@ -1,10 +1,7 @@
# This script will clear the TeXLive directory # This script will clear the TeXLive directory
# and the /etc/profile.d/texlive.sh
# #
case "${ACTION}" in case "${ACTION}" in
pre) post)
rm -rf /opt/texlive/2013 rm -rf /opt/texlive/2013
;; ;;
post)
;;
esac esac

View File

@ -0,0 +1,2 @@
#location of the TeXLive binaries
export PATH=$PATH:/opt/texlive/2013/bin/@@ARCH@@

View File

@ -1,3 +0,0 @@
#location of the TeXLive binaries
export PATH=$PATH:/opt/texlive/2013/bin/i386-linux

View File

@ -1,2 +0,0 @@
#location of the TeXLive binaries
export PATH=$PATH:/opt/texlive/2013/bin/x86_64-linux

View File

@ -48,10 +48,12 @@ do_install(){
fi fi
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive
vmkdir etc/profile.d
# For system environment vars and desktop extra shortcut # For system environment vars and desktop extra shortcut
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686) vinstall ${FILESDIR}/texlive.sh.i686 644 etc/profile.d texlive.sh ;; i686) sed -e 's/@@ARCH@@/i386/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;;
x86_64) vinstall ${FILESDIR}/texlive.sh.x86_64 644 etc/profile.d texlive.sh ;; x86_64) sed -e 's/@@ARCH@@/x86_64/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;;
esac esac
} }