summaryrefslogtreecommitdiffstats
path: root/source/ap/workbone/workbone.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/workbone/workbone.SlackBuild')
-rwxr-xr-xsource/ap/workbone/workbone.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/source/ap/workbone/workbone.SlackBuild b/source/ap/workbone/workbone.SlackBuild
index b2de0b48f..95751145f 100755
--- a/source/ap/workbone/workbone.SlackBuild
+++ b/source/ap/workbone/workbone.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,9 +26,19 @@ PKG=$TMP/package-workbone
VERSION=2.40
SRCVER=2.4
-ARCH=${ARCH:-x86_64}
+BUILD=${BUILD:-4}
+
+# 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
+
NUMJOBS=${NUMJOBS:-" -j7 "}
-BUILD=${BUILD:-3}
rm -rf $PKG
mkdir -p $TMP $PKG
@@ -43,7 +53,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-zcat $CWD/workbone_$VERSION-3.diff.gz | patch -p1 --verbose || exit 1
+zcat $CWD/workbone_$VERSION-9.diff.gz | patch -p1 --verbose || exit 1
zcat $CWD/workbone.1.diff.gz | patch -p1 --verbose || exit 1
make $NUMJOBS || make || exit 1