From c343ae74e3658c85b9bd05c4551d325c42eb2e2b Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Fri, 31 Jan 2020 23:35:58 +0700 Subject: [PATCH] audio/azr3: Update script. Signed-off-by: Willy Sudiarto Raharjo --- audio/azr3/README | 2 -- audio/azr3/azr3.SlackBuild | 39 +++++++++++++++++++++++++++--------- audio/azr3/patches/azr3.png | Bin 0 -> 2135 bytes 3 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 audio/azr3/patches/azr3.png 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 -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 -fi - cd $PKG +if [ "${SETCAP:-yes}" = "yes" ]; then + 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 /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 0000000000000000000000000000000000000000..c9b360e2555486b983a08f22273f5020dffd35e8 GIT binary patch literal 2135 zcmV-d2&ngoP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyb) z4;~ANuu10t0013nR9JLFZ*6U5Zgc_CX>@2HM@dakWG-a~000NB zNklAnXzZaWAA#|oRFAiet6#4^X8lH zy?Gw*?YG~o0Dy}EDow_Oq9|dvQy9wnA^0d1ZQ}yK1boCzzcB$g1TcY~C=BJ8cMN$| z)>Cq}k!`*~j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