diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-02 19:41:44 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:08 +0700 |
commit | 465c995ff1b998e0d0ffe5040b36a9def6a02b11 (patch) | |
tree | 50a76f9375f5918a924d1b4c260516f31291ba70 | |
parent | ed195ecf3ee3dc2afebbbe62b6ff450018a7592f (diff) |
misc/lppf: Minor cleanups.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | misc/lppf/README | 6 | ||||
-rw-r--r-- | misc/lppf/lppf.SlackBuild | 16 | ||||
-rw-r--r-- | misc/lppf/slack-desc | 2 |
3 files changed, 11 insertions, 13 deletions
diff --git a/misc/lppf/README b/misc/lppf/README index 412a14060097d..4b2cd237ea664 100644 --- a/misc/lppf/README +++ b/misc/lppf/README @@ -1,6 +1,6 @@ -lppf is an application for handling PPF patches in Linux. PPF patches are -often very small and are used for correcting a previously released movie -or an ISO, so that users won't have to download everything again. +lppf is an application for handling PPF patches in Linux. PPF patches +are often very small and are used for correcting a previously released +movie or an ISO, so that users won't have to download everything again. To build the debugging symbols use: DEBUG=1 ./lppf.SlackBuild diff --git a/misc/lppf/lppf.SlackBuild b/misc/lppf/lppf.SlackBuild index 7ee052bde5ae9..f5cdc565bde66 100644 --- a/misc/lppf/lppf.SlackBuild +++ b/misc/lppf/lppf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for lppf -# Copyright 2016 Hunter Sezen California, USA +# Copyright 2016, 2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -55,12 +55,7 @@ else LIBDIRSUFFIX="" fi -DEBUG=${DEBUG:-0} -if [ "$DEBUG" = "1" ]; then - SLKCFLAGS=$(echo $SLKCFLAGS | sed 's/-O2/-O0 -g/') -fi - -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -75,17 +70,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +[ "${DEBUG:=0}" != 0 ] && \ + SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')" + zcat $CWD/Makefile.diff.gz | patch -p1 zcat $CWD/braces.diff.gz | patch -p1 -CFLAGS="$SLKCFLAGS" make +make CFLAGS="$SLKCFLAGS" make install \ PREFIX=/usr \ DOCDIR=/usr/doc/$PRGNAM-$VERSION \ DESTDIR=$PKG -if [ "$DEBUG" = "0" ]; then +if [ "$DEBUG" = 0 ]; then 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 fi diff --git a/misc/lppf/slack-desc b/misc/lppf/slack-desc index 0ccb5fac090a2..85954f2443175 100644 --- a/misc/lppf/slack-desc +++ b/misc/lppf/slack-desc @@ -8,7 +8,7 @@ |-----handy-ruler------------------------------------------------------| lppf: lppf (Linux PPF Patcher) lppf: -lppf: lppf is an application for handling PPF patches in Linux. PPF patches +lppf: lppf is an application for handling PPF patches in Linux. PPF patches lppf: are often very small and are used for correcting a previously lppf: released movie or an ISO, so that users won't have to download lppf: everything again. |