From 0df9f83f0c635e8160679d18259287a88e870d55 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 10 Oct 2019 17:42:56 +0200 Subject: [PATCH] texlive-bin: make the broken= actually work [ci skip] --- srcpkgs/texlive-bin/template | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/srcpkgs/texlive-bin/template b/srcpkgs/texlive-bin/template index da83344e453..ecf0cebc83e 100644 --- a/srcpkgs/texlive-bin/template +++ b/srcpkgs/texlive-bin/template @@ -9,16 +9,17 @@ license="GPL-2" homepage="http://tug.org/texlive/" provides="texlive-${version}_${revision}" +case "$XBPS_TARGET_MACHINE" in + i686) _tlarch=i386-linux;; + x86_64) _tlarch=x86_64-linux;; + x86_64-musl) _tlarch=x86_64-linuxmusl;; + arm*) _tlarch=armhf-linux;; + aarch64) _tlarch=aarch64-linux;; + *) broken="$XBPS_TARGET_MACHINE is not supported";; +esac + do_install() { vmkdir etc/profile.d - case "$XBPS_TARGET_MACHINE" in - i686) tlarch=i386-linux;; - x86_64) tlarch=x86_64-linux;; - x86_64-musl) tlarch=x86_64-linuxmusl;; - arm*) tlarch=armhf-linux;; - aarch64) tlarch=aarch64-linux;; - *) broken="$XBPS_TARGET_MACHINE is not supported";; - esac - sed -e "s/@@ARCH@@/${tlarch}/; s/@@VERSION@@/${version}/" \ + sed -e "s/@@ARCH@@/${_tlarch}/; s/@@VERSION@@/${version}/" \ ${FILESDIR}/texlive.sh >${DESTDIR}/etc/profile.d/texlive.sh }