aboutsummaryrefslogtreecommitdiff
path: root/python/pybluez
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:31:00 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:24 -0500
commit839158abf03189f5a019edeced82aa4db67b6876 (patch)
tree59992dfa135581c4f71054a5f06ac2a9354d21f3 /python/pybluez
parentadbde3e07b5cde094c8b53d73a0b078692811f4d (diff)
python/pybluez: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'python/pybluez')
-rw-r--r--python/pybluez/pybluez.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/python/pybluez/pybluez.SlackBuild b/python/pybluez/pybluez.SlackBuild
index 2436a80e0bae..c8337439ec58 100644
--- a/python/pybluez/pybluez.SlackBuild
+++ b/python/pybluez/pybluez.SlackBuild
@@ -22,13 +22,21 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-SRCNAM=PyBluez
-PRGNAM=$(echo $SRCNAM | tr [:upper:] [:lower:])
+PRGNAM=pybluez
VERSION=0.18
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=PyBluez
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM