diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:10 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:01:10 -0400 |
commit | f275ce4b2fce8c3550582dbdb4d3dd2cdb89fede (patch) | |
tree | a7a6a987cf2f51867aa7b19a3103c1389eb568fd /desktop | |
parent | c4d9635a35d86784c97e4b17fd6705dca43a9a36 (diff) |
desktop/kcometen4: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/kcometen4/kcometen4.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/desktop/kcometen4/kcometen4.SlackBuild b/desktop/kcometen4/kcometen4.SlackBuild index 3c25dc2d0aede..d4c1c5b0ff7f5 100644 --- a/desktop/kcometen4/kcometen4.SlackBuild +++ b/desktop/kcometen4/kcometen4.SlackBuild @@ -22,14 +22,21 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=kcometen4 VERSION=1.0.6 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +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 + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -44,7 +51,7 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" -elif [ "$ARCH" = "s390" ]; then +else SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi |