summaryrefslogtreecommitdiffstats
path: root/unrar/build/unrar.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-11-15 20:16:08 +0000
committer Eric Hameleers <alien@slackware.com>2009-11-15 20:16:08 +0000
commit675544ff3d0a935b0900c9d5232495d6914b5fb8 (patch)
tree3526fef18637f88fd0e35117a1334d576c358bf6 /unrar/build/unrar.SlackBuild
parent82abfc1ca32fa232bb71d3335b79af3a011e6498 (diff)
downloadasb-675544ff3d0a935b0900c9d5232495d6914b5fb8.tar.gz
asb-675544ff3d0a935b0900c9d5232495d6914b5fb8.tar.xz
Avoid "unbound variable ARCH" error
Diffstat (limited to 'unrar/build/unrar.SlackBuild')
-rwxr-xr-xunrar/build/unrar.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/unrar/build/unrar.SlackBuild b/unrar/build/unrar.SlackBuild
index 6c257792..c0e381b4 100755
--- a/unrar/build/unrar.SlackBuild
+++ b/unrar/build/unrar.SlackBuild
@@ -74,13 +74,6 @@ SRCURL="http://www.rarlab.com/rar/${PRGNAM}src-${VERSION}.tar.gz"
## --- with a little luck, you won't have to edit below this point --- ##
##
-# Exit the script on errors:
-set -e
-trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
-# Catch unitialized variables:
-set -u
-P1=${1:-1}
-
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -91,6 +84,13 @@ if [ -z "$ARCH" ]; then
esac
fi
+# Exit the script on errors:
+set -e
+trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
+# Catch unitialized variables:
+set -u
+P1=${1:-1}
+
case "$ARCH" in
i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"
SLKLDFLAGS=""; LIBDIRSUFFIX=""