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.SlackBuild39
1 files changed, 22 insertions, 17 deletions
diff --git a/audio/calf-ladspa/calf-ladspa.SlackBuild b/audio/calf-ladspa/calf-ladspa.SlackBuild
index f78f393bc7..e925cc9e57 100644
--- a/audio/calf-ladspa/calf-ladspa.SlackBuild
+++ b/audio/calf-ladspa/calf-ladspa.SlackBuild
@@ -1,8 +1,12 @@
-#!/bin/sh
+#!/bin/bash
# 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
@@ -30,10 +34,13 @@
# tarballs, so this is a git checkout from 20140308.
# - Added capability stuff.
+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}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -43,7 +50,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -83,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
@@ -95,10 +103,8 @@ 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.
-#patch -p1 < $CWD/minmax.diff
+# This patch replaces them with C-style MIN and MAX macros.
+patch -p1 < $CWD/minmax.diff
autoreconf -if
@@ -129,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:
@@ -147,4 +152,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE