summaryrefslogtreecommitdiff
path: root/system/trrntzip
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-05-01 10:33:24 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-05-03 09:08:24 -0500
commite089fe9be660052d3ae6af4a61fa4c16832ce52e (patch)
treec4e3327eda23f31dd6f139e08e97c0568e7e691a /system/trrntzip
parentf7bea05e3606c709b4a47d9fab8f5bc1a8f0fde9 (diff)
downloadslackbuilds-e089fe9be660052d3ae6af4a61fa4c16832ce52e.tar.gz
system/trrntzip: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/trrntzip')
-rw-r--r--system/trrntzip/trrntzip.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/system/trrntzip/trrntzip.SlackBuild b/system/trrntzip/trrntzip.SlackBuild
index ab434d1ceb..7940960918 100644
--- a/system/trrntzip/trrntzip.SlackBuild
+++ b/system/trrntzip/trrntzip.SlackBuild
@@ -22,13 +22,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -eu
PRGNAM=trrntzip
VERSION=v02
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
+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
@@ -42,6 +49,8 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
+set -eu
+
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP