summaryrefslogtreecommitdiff
path: root/misc/iscan-proprietary-drivers
diff options
context:
space:
mode:
Diffstat (limited to 'misc/iscan-proprietary-drivers')
-rw-r--r--misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild b/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild
index becb8b6d72..1adea3c564 100644
--- a/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild
+++ b/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild
@@ -24,10 +24,17 @@
PRGNAM=iscan-proprietary-drivers
VERSION=2.10.0.1
-ARCH=${ARCH:-i586}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM