aboutsummaryrefslogtreecommitdiff
path: root/python/pybluez/pybluez.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/pybluez/pybluez.SlackBuild')
-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