aboutsummaryrefslogtreecommitdiff
path: root/system/unrar/unrar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/unrar/unrar.SlackBuild')
-rw-r--r--system/unrar/unrar.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild
index f2489f4e62721..cbbe93cf6022f 100644
--- a/system/unrar/unrar.SlackBuild
+++ b/system/unrar/unrar.SlackBuild
@@ -22,13 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Updated by Andrew Brouwers for Slackware 12 <abrouwers@gmail.com>
+# Updated by Andrew Brouwers
PRGNAM=unrar
-VERSION=3.7.6
+VERSION=3.7.8
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -55,7 +56,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/${PRGNAM}src-$VERSION.tar.gz || exit 1
+tar xvf $CWD/${PRGNAM}src-$VERSION.tar.gz || exit 1
mv $PRGNAM $PRGNAM-$VERSION || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
@@ -67,12 +68,9 @@ sed -i "s/-O2/$CFLAGS/" makefile.unix
make -f makefile.unix || exit 1
install -D -m 755 unrar $PKG/usr/bin/unrar || exit 1
-install -D -m 644 $CWD/unrar.1.gz $PKG/usr/man/man1/unrar.1.gz || exit 1
+strip --strip-unneeded $PKG/usr/bin/unrar
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+install -D -m 644 $CWD/unrar.1.gz $PKG/usr/man/man1/unrar.1.gz || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION