diff options
-rw-r--r-- | audio/sooperlooper/README | 6 | ||||
-rw-r--r-- | audio/sooperlooper/setcap.sh | 5 | ||||
-rw-r--r-- | audio/sooperlooper/sooperlooper.SlackBuild | 14 | ||||
-rw-r--r-- | audio/sooperlooper/sooperlooper.info | 6 |
4 files changed, 27 insertions, 4 deletions
diff --git a/audio/sooperlooper/README b/audio/sooperlooper/README index 70dab0f303..1d52bf45f9 100644 --- a/audio/sooperlooper/README +++ b/audio/sooperlooper/README @@ -2,3 +2,9 @@ SooperLooper is a live looping sampler capable of immediate loop recording, overdubbing, multiplying, reversing and more. It allows for multiple simultaneous multi-channel loops limited only by your computer's available memory. + +This package uses POSIX filesystem capabilities to execute with +elevated privileges (required for realtime audio processing). This +may be considered a security/stability risk. Please read +http://www.slackbuilds.org/caps/ for more information. To disable +capabilities, pass SETCAP=no to the script. diff --git a/audio/sooperlooper/setcap.sh b/audio/sooperlooper/setcap.sh new file mode 100644 index 0000000000..6734d2b86f --- /dev/null +++ b/audio/sooperlooper/setcap.sh @@ -0,0 +1,5 @@ +if [ -x /sbin/setcap ]; then + for i in slgui slregister slconsole sooperlooper; do + /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i + done +fi diff --git a/audio/sooperlooper/sooperlooper.SlackBuild b/audio/sooperlooper/sooperlooper.SlackBuild index 0f1a0fc313..824189b395 100644 --- a/audio/sooperlooper/sooperlooper.SlackBuild +++ b/audio/sooperlooper/sooperlooper.SlackBuild @@ -4,8 +4,10 @@ # Written by B. Watson (yalhcru@gmail.com) +# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. + PRGNAM=sooperlooper -VERSION=${VERSION:-1.6.14} +VERSION=${VERSION:-1.6.18} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -51,6 +53,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Note: the CFLAGS are actually ignored here. Oh well. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -85,5 +88,14 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +if [ "${SETCAP:-yes}" = "yes" ]; then + PROGS="slconsole slgui slregister $PRGNAM" + cat $CWD/setcap.sh >> $PKG/install/doinst.sh + for file in $PROGS; do + chown root:audio $PKG/usr/bin/$file + chmod 0750 $PKG/usr/bin/$file + done +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/sooperlooper/sooperlooper.info b/audio/sooperlooper/sooperlooper.info index 12dbdef4a0..42a8ae8ca1 100644 --- a/audio/sooperlooper/sooperlooper.info +++ b/audio/sooperlooper/sooperlooper.info @@ -1,8 +1,8 @@ PRGNAM="sooperlooper" -VERSION="1.6.14" +VERSION="1.6.18" HOMEPAGE="http://essej.net/sooperlooper/" -DOWNLOAD="http://essej.net/sooperlooper/sooperlooper-1.6.14.tar.gz" -MD5SUM="6faace751e59347afd45e3bc5ad6904f" +DOWNLOAD="http://essej.net/sooperlooper/sooperlooper-1.6.18.tar.gz" +MD5SUM="e59d59ca85eaf652a4870c6c3ac80b5a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jack-audio-connection-kit liblo libsigc++-legacy12 rubberband wxPython" |