From 3275296469322da4382e0db15cdb2ef8defbd7e5 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Fri, 7 Jul 2017 15:28:49 +0700 Subject: office/texlive-extra: Fix ARCH. Signed-off-by: Willy Sudiarto Raharjo --- office/texlive-extra/texlive-extra.SlackBuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/office/texlive-extra/texlive-extra.SlackBuild b/office/texlive-extra/texlive-extra.SlackBuild index 21ca3a7d8e..1ed873cf66 100644 --- a/office/texlive-extra/texlive-extra.SlackBuild +++ b/office/texlive-extra/texlive-extra.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=texlive-extra VERSION=${VERSION:-2017.170622} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -34,10 +34,16 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -ARCH=noarch - set -e +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + rm -rf $PKG mkdir -p $TMP $PKG/usr/share $OUTPUT tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -C $PKG/usr/share -- cgit v1.2.3