diff options
Diffstat (limited to 'source.local/l/urwid/urwid.SlackBuild')
-rwxr-xr-x | source.local/l/urwid/urwid.SlackBuild | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/source.local/l/urwid/urwid.SlackBuild b/source.local/l/urwid/urwid.SlackBuild index 50b185d..12d26b5 100755 --- a/source.local/l/urwid/urwid.SlackBuild +++ b/source.local/l/urwid/urwid.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for urwid # Copyright 2009 Andrew Psaltis <ampsaltis@gmail.com> +# Copyright 2012 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,22 +24,27 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by Robby Workman <rworkman@slackware.com> -# Modified 2012 by Eric Hameleers <alien at slackware.com> for ARM port. +# Modified 2013 by Eric Hameleers <alien at slackware.com> for ARM port. + PRGNAM=urwid -VERSION=0.9.9.1 +VERSION=${VERSION:-1.0.1} BUILD=${BUILD:-1} -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac +if [ -e $CWD/machine.conf ]; then + . $CWD/machine.conf ] +elif [ -e /etc/slackbuild/machine.conf ]; then + . /etc/slackbuild/machine.conf ] +else + # Automatically determine the architecture we're building on: + if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac + fi fi CWD=$(pwd) |