From 36922e46a9f84ae54fa7c4495c819fdb2321513d Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Sat, 21 Dec 2019 07:31:57 +0700 Subject: [PATCH] audio/setBfree: Updated for version 0.8.11. Signed-off-by: Willy Sudiarto Raharjo --- audio/setBfree/setBfree.SlackBuild | 17 ++++++++--------- audio/setBfree/setBfree.info | 6 +++--- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/audio/setBfree/setBfree.SlackBuild b/audio/setBfree/setBfree.SlackBuild index 7ef2d960c9..6e2ea8c4ba 100644 --- a/audio/setBfree/setBfree.SlackBuild +++ b/audio/setBfree/setBfree.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=setBfree -VERSION=${VERSION:-0.8.10} +VERSION=${VERSION:-0.8.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -103,15 +103,14 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -# Only add capability stuff if not disabled: if [ "${SETCAP:-yes}" = "yes" ]; then - # set realtime capabilities - echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$PRGNAM" >> $PKG/install/doinst.sh - echo "[ -x usr/bin/${PRGNAM}UI ] && \ - /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/${PRGNAM}UI" >> $PKG/install/doinst.sh - # Only allow execution by audio group - chown root:audio $PKG/usr/bin/* - chmod 0750 $PKG/usr/bin/* + for bin in $(ls $PKG/usr/bin/); do + if [ $(readelf -d $PKG/usr/bin/$bin | grep libjack.so &> /dev/null) ]; then + echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$bin" >> $PKG/install/doinst.sh + chown root:audio $PKG/usr/bin/$bin + chmod 0750 $PKG/usr/bin/$bin + fi + done fi cd $PKG diff --git a/audio/setBfree/setBfree.info b/audio/setBfree/setBfree.info index 33f2a14e63..243294b19b 100644 --- a/audio/setBfree/setBfree.info +++ b/audio/setBfree/setBfree.info @@ -1,8 +1,8 @@ PRGNAM="setBfree" -VERSION="0.8.10" +VERSION="0.8.11" HOMEPAGE="https://x42-plugins.com/x42/setBfree" -DOWNLOAD="https://github.com/pantherb/setBfree/archive/v0.8.10/setBfree-0.8.10.tar.gz" -MD5SUM="05ca24e68dd70f498a52f609ec3eb050" +DOWNLOAD="https://github.com/pantherb/setBfree/archive/v0.8.11/setBfree-0.8.11.tar.gz" +MD5SUM="0bc5c6e17c6a352c0f0a8a26fd1b7f21" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jack-audio-connection-kit"