summaryrefslogtreecommitdiff
path: root/system/pyserial
diff options
context:
space:
mode:
authorGrissiom <chaos.proton@gmail.com>2010-05-30 19:57:51 +0800
committerRobby Workman <rworkman@slackbuilds.org>2010-06-01 01:24:20 -0500
commit450fde1509106c6beafe0d030d523b5fee7b5445 (patch)
tree21efc63fbfed097a34809122dab92a07d7d38b4d /system/pyserial
parente0f0bdf194f9e49fa01f438772cea8598f09e475 (diff)
downloadslackbuilds-450fde1509106c6beafe0d030d523b5fee7b5445.tar.gz
system/pyserial: Miscellaneous cleanups (template update)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/pyserial')
-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