From 839158abf03189f5a019edeced82aa4db67b6876 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 1 May 2011 10:31:00 -0400 Subject: python/pybluez: ARCH fixes and cleanup. Signed-off-by: dsomero --- python/pybluez/pybluez.SlackBuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/pybluez/pybluez.SlackBuild b/python/pybluez/pybluez.SlackBuild index 2436a80e0b..c8337439ec 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 -- cgit v1.2.3