From 00e83466efcbdde7c62e40483e3f2691dfdcd13a Mon Sep 17 00:00:00 2001 From: Yalla-One Date: Tue, 11 May 2010 19:46:44 +0200 Subject: system/unrar: Updated for version 3.7.8 --- system/unrar/unrar.SlackBuild | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'system/unrar/unrar.SlackBuild') diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild index f2489f4e62..cbbe93cf60 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 +# 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 -- cgit v1.2.3