summaryrefslogtreecommitdiff
path: root/office/texlive-extra
diff options
context:
space:
mode:
Diffstat (limited to 'office/texlive-extra')
-rw-r--r--office/texlive-extra/texlive-extra.SlackBuild12
1 files 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