diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/p7zip/p7zip.SlackBuild | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/system/p7zip/p7zip.SlackBuild b/system/p7zip/p7zip.SlackBuild index e21a3b0709..ec9cbda5ed 100644 --- a/system/p7zip/p7zip.SlackBuild +++ b/system/p7zip/p7zip.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for p7zip -# Copyright 2007-2011 Heinz Wiesinger, Amsterdam, Netherlands +# Copyright 2007-2016 Heinz Wiesinger, Amsterdam, Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=p7zip VERSION=${VERSION:-16.02} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -115,10 +115,6 @@ if ! [ "$GUI" = "no" ]; then find $PKG/usr/lib$LIBDIRSUFFIX/p7zip/Lang -type d -exec chmod 555 {} \; find $PKG/usr/lib$LIBDIRSUFFIX/p7zip/Lang -type f -exec chmod 444 {} \; - cp -r GUI/help $PKG/usr/lib$LIBDIRSUFFIX/p7zip/help - find $PKG/usr/lib$LIBDIRSUFFIX/p7zip/help -type d -exec chmod 555 {} \; - find $PKG/usr/lib$LIBDIRSUFFIX/p7zip/help -type f -exec chmod 444 {} \; - install -m 555 GUI/p7zipForFilemanager $PKG/usr/bin/p7zipForFilemanager install -m 444 -D GUI/p7zip_16_ok.png $PKG/usr/share/icons/hicolor/16x16/apps/p7zip.png @@ -127,10 +123,11 @@ if ! [ "$GUI" = "no" ]; then cp GUI/kde4/*.desktop $PKG/usr/share/kde4/services/ServiceMenus/ fi -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 find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done cp TODO $PKG/usr/doc/$PRGNAM-$VERSION cp contrib/gzip-like_CLI_wrapper_for_7z/README $PKG/usr/doc/$PRGNAM-$VERSION/README.p7zip |