misc/lppf: Minor cleanups.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2018-04-02 19:41:44 +00:00 committed by Willy Sudiarto Raharjo
parent ed195ecf3e
commit 465c995ff1
3 changed files with 11 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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.