From 450fde1509106c6beafe0d030d523b5fee7b5445 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Sun, 30 May 2010 19:57:51 +0800 Subject: system/pyserial: Miscellaneous cleanups (template update) Signed-off-by: Robby Workman --- system/pyserial/pyserial.SlackBuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'system/pyserial') 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 -- cgit v1.2.3