Browse Source

misc/lppf: Minor cleanups.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/47/head
Hunter Sezen 8 years ago
committed by Willy Sudiarto Raharjo
parent
commit
465c995ff1
  1. 6
      misc/lppf/README
  2. 16
      misc/lppf/lppf.SlackBuild
  3. 2
      misc/lppf/slack-desc

6
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

16
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

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

Loading…
Cancel
Save