summaryrefslogtreecommitdiffstats
path: root/audio/calf-ladspa/calf-ladspa.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/calf-ladspa/calf-ladspa.SlackBuild')
-rw-r--r--audio/calf-ladspa/calf-ladspa.SlackBuild27
1 files changed, 11 insertions, 16 deletions
diff --git a/audio/calf-ladspa/calf-ladspa.SlackBuild b/audio/calf-ladspa/calf-ladspa.SlackBuild
index 53e77de7bb..e925cc9e57 100644
--- a/audio/calf-ladspa/calf-ladspa.SlackBuild
+++ b/audio/calf-ladspa/calf-ladspa.SlackBuild
@@ -2,7 +2,11 @@
# Slackware build script for calf-ladspa
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
+
+# 20211127 bkw: BUILD=2
+# - rework README and slack-desc, remove mentions of JACK and DSSI.
+# - move html docs to subdir.
# 20170706 bkw:
# - Patch source so it doesn't check for jack-audio-connection-kit or
@@ -34,7 +38,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=calf-ladspa
VERSION=${VERSION:-0.0.19kx}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -46,9 +50,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -93,11 +94,8 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$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 {} \+
# There are no --without or --disable options for jack and fluidsynth,
# so patch the autoconf to skip them (they're not needed for the LADSPA
@@ -105,9 +103,7 @@ find -L . \
patch -p1 < $CWD/disable-jack-and-fluidsynth.diff
# gcc 7 is very picky about the argument types of std::min() and std::max().
-# This patch replaces them with C-style MIN and MAX macros. Not actually
-# needed on Slack 14.2, so it's commented out, but I'm checking the actual
-# patch into git so I won't lose track of it.
+# This patch replaces them with C-style MIN and MAX macros.
patch -p1 < $CWD/minmax.diff
autoreconf -if
@@ -139,11 +135,10 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION
+make install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION/html
# install-strip is supported, but doesn't work:
-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/lib*/ladspa/*.so
# This build is only for the ladspa plugins, so none of this
# other stuff should be in the package: