summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Grissiom2010-05-30 13:57:51 +0200
committer Robby Workman2010-06-01 08:24:20 +0200
commit450fde1509106c6beafe0d030d523b5fee7b5445 (patch)
tree21efc63fbfed097a34809122dab92a07d7d38b4d /system
parente0f0bdf194f9e49fa01f438772cea8598f09e475 (diff)
downloadslackbuilds-450fde1509106c6beafe0d030d523b5fee7b5445.tar.gz
system/pyserial: Miscellaneous cleanups (template update)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rwxr-xr-xsystem/pyserial/pyserial.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/pyserial/pyserial.SlackBuild b/system/pyserial/pyserial.SlackBuild
index 8fbd9ffe8b..ad81e445e1 100755
--- a/system/pyserial/pyserial.SlackBuild
+++ b/system/pyserial/pyserial.SlackBuild
@@ -6,7 +6,6 @@
PRGNAM=pyserial
VERSION=${VERSION:-2.4}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,6 +14,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# only package name use ARCH, python can detect the lib directory itself.
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
set -e
rm -rf $PKG