diff options
Diffstat (limited to 'system/unrar/unrar.SlackBuild')
-rw-r--r-- | system/unrar/unrar.SlackBuild | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild index 26b72986b83c7..94a857f450d65 100644 --- a/system/unrar/unrar.SlackBuild +++ b/system/unrar/unrar.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for unrar -# Copyright 2011-2013, mario <mario@slackverse.org> +# Copyright 2010-2013 Mario Preksavec, Zagreb, HR # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,16 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=unrar -VERSION=${VERSION:-4.2.4} +VERSION=${VERSION:-5.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -65,13 +63,13 @@ rm -rf $PRGNAM tar xvf $CWD/${PRGNAM}src-$VERSION.tar.gz cd $PRGNAM chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -make CXXFLAGS="$SLKCFLAGS" -f makefile.unix unrar lib +make CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib install -D -m 755 unrar $PKG/usr/bin/unrar install -D -m 644 libunrar.so $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so |