diff options
Diffstat (limited to 'system')
-rwxr-xr-x | system/pyserial/pyserial.SlackBuild | 11 |
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 |