summaryrefslogtreecommitdiffstats
path: root/audio/rubberband/rubberband.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rubberband/rubberband.SlackBuild')
-rw-r--r--audio/rubberband/rubberband.SlackBuild31
1 files changed, 26 insertions, 5 deletions
diff --git a/audio/rubberband/rubberband.SlackBuild b/audio/rubberband/rubberband.SlackBuild
index 349b10f5ce..5bd8202709 100644
--- a/audio/rubberband/rubberband.SlackBuild
+++ b/audio/rubberband/rubberband.SlackBuild
@@ -4,10 +4,18 @@
# Written by Luis Henrique <email removed>
-# Modified by B. Watson <yalhcru@gmail.com>. Original had no license.
+# Modified by B. Watson <urchlay@slackware.uk>. Original had no license.
# Modified version licensed under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
+# 20240321 bkw: update for v3.3.0.
+# 20230112 bkw: update for v3.1.2.
+# In 3.1.2, ladspa_sdk and vamp-plugin-sdk are not required. I'm
+# leaving them in REQUIRES for now, because other builds that
+# depend on rubberband might also depend on ladspa_sdk and/or
+# vamp-plugin-sdk, but not list them in REQUIRES because rubberband
+# "pulls them in". This will change in the future!
+
# 20211125 bkw: update for v2.0.0
# 20201103 bkw: update for v1.9.0
# 20180702 bkw:
@@ -25,7 +33,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rubberband
-VERSION=${VERSION:-2.0.0}
+VERSION=${VERSION:-3.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,8 +78,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
JAVA="${JAVA:-no}"
@@ -141,16 +149,29 @@ fi
WITHJAVA=WITHOUT
[ -e $JNILIB ] && WITHJAVA=WITH
+WITHLV2=WITHOUT
+[ -e $PKG/usr/lib$LIBDIRSUFFIX/lv2/$PRGNAM.lv2/lv2-$PRGNAM.so ] && \
+ WITHLV2=WITH
+
+# 20230112 bkw: in 3.1.2, we get two identical binaries...
+# 20240321 bkw: still true of 3.3.0.
+rm $PKG/usr/bin/$PRGNAM-r3
+ln -s $PRGNAM $PKG/usr/bin/$PRGNAM-r3
+
# man page borrowed from Debian
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+ln -s $PRGNAM.1.gz $PKG/usr/man/man1/$PRGNAM-r3.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG COPYING README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
-sed "s,@WITHJAVA@,$WITHJAVA," $CWD/slack-desc > $PKG/install/slack-desc
+sed -e "s,@WITHJAVA@,$WITHJAVA," \
+ -e "s,@WITHLV2@,$WITHLV2," \
+ $CWD/slack-desc \
+ > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE