aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2013-11-24 11:19:06 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-11-24 19:23:46 +0700
commitd5f8500c8c7a0d69dfb01b4721f323287a277dae (patch)
tree6314418d7bc0ad74e181096d1c0700a3cffc4fd9 /misc
parent2a5df88b76f6b9079f2b28c4e84eba9ef635102e (diff)
misc/iscan-proprietary-drivers: Fixed to detect ARCH.
Failed to build on x86_64 because of hardcoded 'i586'. There is an x86_64 download listed in .info, so fixed by detecting ARCH properly. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-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 becb8b6d726fa..1adea3c564349 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