texlive-bin: fix x86 installation; misc tweaks.

This commit is contained in:
Juan RP 2014-04-30 17:44:20 +02:00
parent 1de6131f15
commit 3164546902
3 changed files with 19 additions and 14 deletions

View File

@ -30,7 +30,7 @@ post)
You may need to reboot to ensure that PATH is update correctly, You may need to reboot to ensure that PATH is update correctly,
for the impatients, if you want you can type for the impatients, if you want you can type
$ sudo source /etc/profile $ source /etc/profile
and check the PATH. and check the PATH.
@ -38,11 +38,11 @@ post)
To update you TeXLive installation use only the program To update you TeXLive installation use only the program
/opt/texlive/????/<arch>/tlmgr. /opt/texlive/${VERSION}/<arch>/tlmgr.
where the ???? is the TeXLive version and <arch> is: where <arch> is:
- X86_64-linux ==> voidlinux X86_64 architecture - X86_64-linux ==> x86_64 architecture
- i386-linux ==> voidlinux i386 architecture - i386-linux ==> i386 architecture
see: see:

View File

@ -1,12 +1,12 @@
# Template file for 'texlive-bin' # Template file for 'texlive-bin'
pkgname=texlive-bin pkgname=texlive-bin
version=2013 version=2013
revision=1 revision=2
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>" maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://tug.org/texlive/" homepage="http://tug.org/texlive/"
license="GPL-2" license="GPL-2"
short_desc="Texlive Binary distribution through tl-install" short_desc="Texlive Binary distribution through tl-install"
provides="textlive-${version}_${revision}" provides="texlive-${version}_${revision}"
depends="cairo pixman graphite t1lib gd poppler libsigsegv depends="cairo pixman graphite t1lib gd poppler libsigsegv
zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
ghostscript" ghostscript"
@ -30,13 +30,12 @@ pre_install(){
rm ${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux rm ${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux
rm ${_dir}/*arm??-linux ${_dir}/*mipsel-linux rm ${_dir}/*arm??-linux ${_dir}/*mipsel-linux
rm -rf ${wrksrc}/install-tl*/tlpkg/installer/wget rm -rf ${wrksrc}/install-tl*/tlpkg/installer/wget
} }
do_install(){ do_install(){
vmkdir opt/texlive-installer vmkdir opt/texlive-installer
vcopy "install-tl-*/*" /opt/texlive-installer vcopy "install-tl-*/*" /opt/texlive-installer
vinstall ${FILESDIR}/void.tmpl 644 opt/texlive-installer void.profile vinstall ${FILESDIR}/void.profile 644 opt/texlive-installer
if [ "$build_options_default" = "basic" ]; then if [ "$build_options_default" = "basic" ]; then
echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive-installer/void.profile echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive-installer/void.profile
elif [ "$build_options_default" = "small" ]; then elif [ "$build_options_default" = "small" ]; then
@ -51,9 +50,15 @@ do_install(){
vmkdir etc/profile.d 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) sed -e 's/@@ARCH@@/i386-linux/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; i686)
x86_64) sed -e 's/@@ARCH@@/x86_64-linux/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; sed -e 's/@@ARCH@@/i386-linux/' ${FILESDIR}/texlive.sh \
> ${DESTDIR}/etc/profile.d/texlive.sh
rm ${DESTDIR}/opt/texlive-installer/tlpkg/installer/xz/xzdec.x86_64-linux
;;
x86_64)
sed -e 's/@@ARCH@@/x86_64-linux/' ${FILESDIR}/texlive.sh \
> ${DESTDIR}/etc/profile.d/texlive.sh
rm ${DESTDIR}/opt/texlive-installer/tlpkg/installer/xz/xzdec.i386-linux
;;
esac esac
} }