diff options
author | Johannes Schoepfer <slackbuilds[at]schoepfer[dot]info> | 2017-07-07 15:28:49 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-07 15:28:49 +0700 |
commit | 3275296469322da4382e0db15cdb2ef8defbd7e5 (patch) | |
tree | 66b3bdcb035dfa2d94b27501305e4b2c0dd9817d | |
parent | f06c7f0f31f29265ad11d23b816d18de87914b63 (diff) | |
download | slackbuilds-3275296469322da4382e0db15cdb2ef8defbd7e5.tar.gz |
office/texlive-extra: Fix ARCH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/texlive-extra/texlive-extra.SlackBuild | 12 |
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 |