diff options
Diffstat (limited to 'system/lzop/lzop.SlackBuild')
-rw-r--r-- | system/lzop/lzop.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/system/lzop/lzop.SlackBuild b/system/lzop/lzop.SlackBuild index 9b79e00db12d0..9e93aae47b064 100644 --- a/system/lzop/lzop.SlackBuild +++ b/system/lzop/lzop.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for lzop # Copyright (c) 2011-2017 LEVAI Daniel +# Copyright (c) 2020 B. Watson # All rights reserved. # # * Redistribution and use in source and binary forms, with or without @@ -25,6 +26,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20200129 bkw: take over maintenance, simplify build, remove some cruft. + PRGNAM=lzop VERSION=${VERSION:-1.04} BUILD=${BUILD:-1} @@ -66,11 +69,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ ./configure \ @@ -80,17 +80,17 @@ CFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -DESTDIR=$PKG make install - -strip --strip-unneeded $PKG/usr/bin/lzop +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man?/*.? -find $PKG/usr/man -type f -exec gzip -9 {} \; +# 20200129 bkw: We really don't need the docs in every possible format. We +# already got a man page in /usr/man, and .tex is the source format. Leave +# the HTML, plain text, and PostScript. +for ext in pod tex man; do + rm -f $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.$ext +done -mkdir -p -m 755 $PKG/usr/doc/$PRGNAM-$VERSION -cp AUTHORS COPYING INSTALL NEWS README THANKS \ - $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc -type f -exec chmod 0644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |