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.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/system/rar/rar.SlackBuild b/system/rar/rar.SlackBuild
index e84e0c1caf..d2cf6ae5b3 100644
--- a/system/rar/rar.SlackBuild
+++ b/system/rar/rar.SlackBuild
@@ -6,7 +6,7 @@
# Modifed for new rar version with x64 support by Ozan Türkyılmaz ozan.turkyilmaz@gmail.com
PRGNAM=rar
-VERSION=${VERSION:-4.0.0}
+VERSION=${VERSION:-4.0.1b1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -21,9 +21,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# Since the tarball also contains an unrar binary,
-# I've added an option to include it in the package.
-UNRAR=${UNRAR:-no}
+# Include unrar in the package
+UNRAR=${UNRAR:-no} # disabled by default since unrar is available on SBo
set -e
@@ -35,7 +34,7 @@ elif [ "$ARCH" = "i386" ]; then
LIBDIRSUFFIX=""
else
printf "\n$ARCH is not supported...\n\n" ; exit 1
-fi
+fi
rm -rf $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -62,7 +61,7 @@ fi
mkdir -p $PKG/etc
cat rarfiles.lst > $PKG/etc/rarfiles.lst.new
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION