diff options
Diffstat (limited to 'network/qtmib/qtmib.SlackBuild')
-rw-r--r-- | network/qtmib/qtmib.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/network/qtmib/qtmib.SlackBuild b/network/qtmib/qtmib.SlackBuild index 4a46a07f17..c1ac26ce26 100644 --- a/network/qtmib/qtmib.SlackBuild +++ b/network/qtmib/qtmib.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for qtmib # Copyright (c) 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,11 @@ # 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 +# - actually use SLKCFLAGS +# - grammar nitpicks in README, slack-desc + PRGNAM=qtmib VERSION=${VERSION:-1.1.1} BUILD=${BUILD:-1} @@ -66,12 +72,10 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 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 640 -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" CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ @@ -81,9 +85,7 @@ find -L . \ sed -i "s|share/man|man|g" Makefile make make install DESTDIR=$PKG - -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 +strip $PKG/usr/bin/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README RELNOTES $PKG/usr/doc/$PRGNAM-$VERSION |