summaryrefslogtreecommitdiffstats
path: root/audio/tap_plugins/tap_plugins.SlackBuild
diff options
context:
space:
mode:
author B. Watson2015-11-04 23:25:34 +0100
committer Willy Sudiarto Raharjo2015-11-07 04:33:23 +0100
commit552fad9c44172c348117cc46f01949e7dc556ddb (patch)
treec65a34e185ce26b757a000affe0aeb2db377e700 /audio/tap_plugins/tap_plugins.SlackBuild
parent230d78d59a2b13fb93f8094b191d55d0ca311a0a (diff)
downloadslackbuilds-552fad9c44172c348117cc46f01949e7dc556ddb.tar.gz
audio/tap_plugins: Updated for version 0.7.3, add desktop/setcap.
Diffstat (limited to 'audio/tap_plugins/tap_plugins.SlackBuild')
-rw-r--r--audio/tap_plugins/tap_plugins.SlackBuild44
1 files changed, 34 insertions, 10 deletions
diff --git a/audio/tap_plugins/tap_plugins.SlackBuild b/audio/tap_plugins/tap_plugins.SlackBuild
index 2a23d2e3d1..1ead88e9fc 100644
--- a/audio/tap_plugins/tap_plugins.SlackBuild
+++ b/audio/tap_plugins/tap_plugins.SlackBuild
@@ -6,9 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20151104 bkw:
+# update for v0.7.3, update docs to 20140526
+# get rid of reverbed.sh wrapper script (patch reverbed instead)
+# add capability stuff for reverbed
+# add .desktop, icon for reverbed
+
PRGNAM=tap_plugins
-VERSION=${VERSION:-0.7.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.7.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -45,7 +51,7 @@ FORCE_SYSTEM_LADSPA_H=${FORCE_SYSTEM_LADSPA_H:-no}
PLUGINS_SRCNAM=tap-plugins
DOCS_SRCNAM=tap-plugins-doc
-DOCS_VERSION=20040817
+DOCS_VERSION=20140526
REVERBED_SRCNAM=tap-reverbed
REVERBED_VERSION=r0
@@ -97,6 +103,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# patch by SlackBuild author, makes reverbed load its config from /etc
+# if no ~/.reverbed found (rather than aborting with an error message).
+patch -p1 < $CWD/reverbed-default-config.diff
+
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -113,14 +123,19 @@ fi
make LIBS=-lm
# more trouble than it's worth to get 'make install' to handle DESTDIR
-strip src/reverbed
-mkdir -p $PKG/usr/bin
-cp src/reverbed $PKG/usr/bin/reverbed.bin
-cat src/.reverbed > $PKG/usr/doc/$PRGNAM-$VERSION/dot.reverbed.default
+mkdir -p $PKG/usr/bin $PKG/etc/reverbed
+install -s -m0755 -oroot -groot src/reverbed $PKG/usr/bin/
+cat src/.reverbed > $PKG/etc/reverbed/reverbed.conf
-# Shell script wrapper
-sed 's/@VERSION@/'$VERSION'/g' < $CWD/reverbed.sh > $PKG/usr/bin/reverbed
-chmod 0755 $PKG/usr/bin/reverbed
+# icon came from:
+# https://www.hscripts.com/freeimages/icons/mechanical/spring-clipart.php
+# and turned into a PNG via ImageMagick's convert.
+mkdir -p $PKG/usr/share/pixmaps
+cat $CWD/reverbed.png > $PKG/usr/share/pixmaps/reverbed.png
+
+# .desktop written by SlackBuild author
+mkdir -p $PKG/usr/share/applications
+cat $CWD/reverbed.desktop > $PKG/usr/share/applications/reverbed.desktop
# ChangeLog and NEWS are 0-length placeholders
for i in AUTHORS COPYING README; do
@@ -143,6 +158,15 @@ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+# Only add capability stuff if not disabled:
+if [ "${SETCAP:-yes}" = "yes" ]; then
+ cat $CWD/setcap.sh >> $PKG/install/doinst.sh
+ # Only allow execution by audio group
+ chown root:audio $PKG/usr/bin/reverbed
+ chmod 0750 $PKG/usr/bin/reverbed
+fi
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}