summaryrefslogtreecommitdiff
path: root/system/rar/rar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/rar/rar.SlackBuild')
-rw-r--r--system/rar/rar.SlackBuild21
1 files changed, 12 insertions, 9 deletions
diff --git a/system/rar/rar.SlackBuild b/system/rar/rar.SlackBuild
index bc88e81684..a35cf92ccf 100644
--- a/system/rar/rar.SlackBuild
+++ b/system/rar/rar.SlackBuild
@@ -1,20 +1,21 @@
#!/bin/sh
# Slackware build script for rar
-# Written by Steven Pledger <piratesmack@ymail.com>
+# Written by Steven Pledger <spledger91@yahoo.com>
-# Changelog:
# Modifed for new rar version with x64 support by Ozan Türkyılmaz ozan.turkyilmaz@gmail.com
-# rev 3: updated to rar 3.9.1, added option to install unrar -steven
-# rev 4: updated to rar 3.9.2 -steven
-# rev 5: updated to rar 3.9.3 -steven
PRGNAM=rar
-VERSION=${VERSION:-3.9.3}
-ARCH=${ARCH:-i386}
+VERSION=${VERSION:-4.0.b3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+case "$( uname -m )" in
+ i?86) ARCH=i386 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+esac
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -29,9 +30,11 @@ set -e
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
x64FIX="x64-"
-else
+elif [ "$ARCH" = "i386" ]; then
ARCH=i386
LIBDIRSUFFIX=""
+else
+ printf "\n$ARCH is not supported...\n\n" ; exit 1
fi
rm -rf $TMP/$PRGNAM $PKG
@@ -48,7 +51,7 @@ install -m 0755 rar $PKG/usr/bin
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
install -m 0755 default.sfx $PKG/usr/lib${LIBDIRSUFFIX}
-if [ "$UNRAR" = "yes" ]; then
+if [ "$UNRAR" != "no" ]; then
install -m 0755 unrar $PKG/usr/bin
fi