diff options
author | wigums <pioneer22675@gmail.com> | 2019-11-16 20:52:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-11-16 20:52:06 +0700 |
commit | 5df2531e001b3143cd867d80931a5a33674b673e (patch) | |
tree | ea1d2df604c5966a5fe9fe5bc7f8d82fa9e027ed /audio | |
parent | 0fdb8c8a927ee832c13275d048870b990b0289dd (diff) | |
download | slackbuilds-5df2531e001b3143cd867d80931a5a33674b673e.tar.gz |
audio/a2jmidid: Updated for version 1.3a, moved from multimedia.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/a2jmidid/README | 13 | ||||
-rw-r--r-- | audio/a2jmidid/a2jmidid.SlackBuild | 90 | ||||
-rw-r--r-- | audio/a2jmidid/a2jmidid.info | 10 | ||||
-rw-r--r-- | audio/a2jmidid/slack-desc | 19 |
4 files changed, 132 insertions, 0 deletions
diff --git a/audio/a2jmidid/README b/audio/a2jmidid/README new file mode 100644 index 0000000000..8c20991b22 --- /dev/null +++ b/audio/a2jmidid/README @@ -0,0 +1,13 @@ +This project aims to ease the usage of legacy, non JACK enabled +applications, in a JACK MIDI enabled system, when using jack2. + +Typical usecase is e.g. to connect bristol/azr3 with qtractor/seq24. + +Note: The latest jack-audio-connection-kit release contains a2jmidid +functionality by itself. + +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/a2jmidid/a2jmidid.SlackBuild b/audio/a2jmidid/a2jmidid.SlackBuild new file mode 100644 index 0000000000..47c531a305 --- /dev/null +++ b/audio/a2jmidid/a2jmidid.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh +# Slackware build script for <a2jmidid> +# Written by Michales Michaloudes korgie@gmail.com + +PRGNAM=a2jmidid +VERSION=${VERSION:-9} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +meson \ + --prefix=/usr \ + build +ninja -C build +DESTDIR=$PKG meson install -C build + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# move man pages to correct location +mv $PKG/usr/share/man $PKG/usr/ +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + {AUTHORS,CHANGELOG,INSTALLATION,README}.rst \ + $PKG/usr/doc/$PRGNAM-$VERSION +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 + for i in \ + a2j_control j2amidi_bridge a2jmidi_bridge a2j a2jmidid + do + echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i" >> $PKG/install/doinst.sh + done + # Only allow execution by audio group + chown root:audio $PKG/usr/bin/* + chmod 0750 $PKG/usr/bin/* +fi + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/a2jmidid/a2jmidid.info b/audio/a2jmidid/a2jmidid.info new file mode 100644 index 0000000000..96b10a1d61 --- /dev/null +++ b/audio/a2jmidid/a2jmidid.info @@ -0,0 +1,10 @@ +PRGNAM="a2jmidid" +VERSION="9" +HOMEPAGE="https://github.com/linuxaudio/a2jmidid" +DOWNLOAD="https://github.com/linuxaudio/a2jmidid/archive/9/a2jmidid-9.tar.gz" +MD5SUM="cfac8647a84513a698c2b310cdb2e2bb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jack2 meson" +MAINTAINER="Johannes Schoepfer" +EMAIL="slackbuilds@schoepfer.info" diff --git a/audio/a2jmidid/slack-desc b/audio/a2jmidid/slack-desc new file mode 100644 index 0000000000..9739cfd445 --- /dev/null +++ b/audio/a2jmidid/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +a2jmidid: a2jmidid (ALSA sequencer to JACK MIDI bridging for jack2) +a2jmidid: +a2jmidid: This project aims to ease the usage of legacy, non JACK enabled +a2jmidid: applications, in a JACK MIDI enabled system, when using jack2. +a2jmidid: +a2jmidid: (e.g. connect bristol/azr3 with qtractor/rosegarden/seq24) +a2jmidid: +a2jmidid: Note: The latest jack-audio-connection-kit release contains a2jmidid +a2jmidid: functionality by itself. +a2jmidid: +a2jmidid: |