summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Johannes Schoepfer2020-01-31 17:35:58 +0100
committer Willy Sudiarto Raharjo2020-01-31 17:35:58 +0100
commitc343ae74e3658c85b9bd05c4551d325c42eb2e2b (patch)
treeda9b74883d620e836279c8433340f6c05a34f7ca
parent144355feb932903f90822fbcc5bbddbe093fd4a4 (diff)
downloadslackbuilds-c343ae74e3658c85b9bd05c4551d325c42eb2e2b.tar.gz
audio/azr3: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--audio/azr3/README2
-rw-r--r--audio/azr3/azr3.SlackBuild37
-rw-r--r--audio/azr3/patches/azr3.pngbin0 -> 2135 bytes
3 files changed, 29 insertions, 10 deletions
diff --git a/audio/azr3/README b/audio/azr3/README
index ce7fbcaa19..97bc738156 100644
--- a/audio/azr3/README
+++ b/audio/azr3/README
@@ -10,8 +10,6 @@ sections respond to events on MIDI channel 1 and 2, and an optional
keyboard split function makes the bass section listen to the lower
keys on channel 1.
-This requires one of the jack varieties.
-
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
diff --git a/audio/azr3/azr3.SlackBuild b/audio/azr3/azr3.SlackBuild
index 102196de83..5b529b981d 100644
--- a/audio/azr3/azr3.SlackBuild
+++ b/audio/azr3/azr3.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for azr3
# Written by B. Watson (yalhcru@gmail.com)
-# Copyright 2019 Johannes Schoepfer, Germany
+# Copyright 2020 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -92,11 +92,20 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# .desktop file written for this SlackBuild
mkdir -p $PKG/usr/share/applications
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat << EOF > $PKG/usr/share/applications/$PRGNAM.desktop
+[Desktop Entry]
+Name=AZR-3
+Comment=Tonewheel Organ for JACK
+Exec=azr3
+Icon=azr3
+Terminal=false
+Type=Application
+Categories=AudioVideo;Audio;
+EOF
# icon is a small piece gimped out of panelfx.png
mkdir -p $PKG/usr/share/pixmaps
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+cat $CWD/patches/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -111,11 +120,23 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cd $PKG
if [ "${SETCAP:-yes}" = "yes" ]; then
- echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$PRGNAM" >> $PKG/install/doinst.sh
- chown root:audio $PKG/usr/bin/$PRGNAM
- chmod 0750 $PKG/usr/bin/$PRGNAM
+ for bin in $(find . -type f -exec file '{}' + | grep " ELF .* executable, " | cut -f 1 -d : ); do
+ [ -n "$(readelf -d $bin | grep libjack.so)" ] && jackbin+=" $bin"
+ done
+ if [ -n "$jackbin" ]; then
+ for file in $jackbin; do
+ chown root:audio $PKG/$file
+ chmod 0750 $PKG/$file
+ done
+ cat <<- EOF >> $PKG/install/doinst.sh
+ if [ -x /sbin/setcap ]; then
+ for file in$jackbin; do
+ /sbin/setcap cap_ipc_lock,cap_sys_nice=ep \$file
+ done
+ fi
+ EOF
+ fi
fi
-
-cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/azr3/patches/azr3.png b/audio/azr3/patches/azr3.png
new file mode 100644
index 0000000000..c9b360e255
--- /dev/null
+++ b/audio/azr3/patches/azr3.png
Binary files differ