diff options
author | Steven Pledger <spledger91@yahoo.com> | 2010-12-25 23:49:09 -0600 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2010-12-27 20:06:57 -0200 |
commit | b58ae29f1c8787636a6fadc4241211a8d4c329fe (patch) | |
tree | faf09ed94ff7e899820d8665cce23493d9c99116 /system/rar/rar.SlackBuild | |
parent | 05170d17e4f3208bd6f9e324af6f92f9309180de (diff) |
system/rar: Updated for version 4.0.b3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/rar/rar.SlackBuild')
-rw-r--r-- | system/rar/rar.SlackBuild | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/system/rar/rar.SlackBuild b/system/rar/rar.SlackBuild index bc88e81684032..a35cf92ccf2b7 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 |