office/texlive-extra: Fix ARCH.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Johannes Schoepfer 2017-07-07 15:28:49 +07:00 committed by Willy Sudiarto Raharjo
parent 677b9b1de3
commit 8c74e25ff4

View file

@ -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