diff options
author | Yalla-One <yallaone@gmail.com> | 2010-05-11 19:46:44 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:46:44 +0200 |
commit | 00e83466efcbdde7c62e40483e3f2691dfdcd13a (patch) | |
tree | 53e3dbbc91a4c4c865afa8f348c2121a8d92c37c /system/unrar/unrar.SlackBuild | |
parent | 611b801ab3cf163b30b835cba490667ca5c4dbcb (diff) | |
download | slackbuilds-00e83466efcbdde7c62e40483e3f2691dfdcd13a.tar.gz |
system/unrar: Updated for version 3.7.8
Diffstat (limited to 'system/unrar/unrar.SlackBuild')
-rw-r--r-- | system/unrar/unrar.SlackBuild | 14 |
1 files changed, 6 insertions, 8 deletions
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 <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 |