texlive-bin: support more archs

This commit is contained in:
Christian Neukirchen 2014-09-15 18:43:04 +02:00
parent ead7c5657e
commit 913ac4d241

View file

@ -1,7 +1,7 @@
# Template file for 'texlive-bin' # Template file for 'texlive-bin'
pkgname=texlive-bin pkgname=texlive-bin
version=2014 version=2014
revision=1 revision=2
maintainer="Christian Neukirchen <chneukirchen@gmail.com>" maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="http://tug.org/texlive/" homepage="http://tug.org/texlive/"
license="GPL-2" license="GPL-2"
@ -9,18 +9,13 @@ short_desc="TeX Live Binary distribution through tl-install (newest version)"
provides="texlive-${version}_${revision}" provides="texlive-${version}_${revision}"
depends="texlive2014-bin" depends="texlive2014-bin"
do_install(){ do_install() {
vmkdir etc/profile.d vmkdir etc/profile.d
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686) i686) tlarch=i386;;
sed -e "s/@@ARCH@@/i386-linux/;s/@@VERSION@@/${version}/" \ x86_64) tlarch=x86_64;;
${FILESDIR}/texlive.sh \ arm*) tlarch=armhf;;
> ${DESTDIR}/etc/profile.d/texlive.sh esac
;; sed -e "s/@@ARCH@@/${tlarch}/; s/@@VERSION@@/${version}/" \
x86_64) ${FILESDIR}/texlive.sh >${DESTDIR}/etc/profile.d/texlive.sh
sed -e "s/@@ARCH@@/x86_64-linux/;s/@@VERSION@@/${version}/" \
${FILESDIR}/texlive.sh \
> ${DESTDIR}/etc/profile.d/texlive.sh
;;
esac
} }