From 2167efbdc487f03a115dbe4851fee06d73fbccf5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 16 Jan 2014 07:14:56 +0700 Subject: audio/japa: Added (audio spectrum analyser for JACK). Signed-off-by: Willy Sudiarto Raharjo --- audio/japa/README | 17 ++++++++ audio/japa/doinst.sh | 3 ++ audio/japa/japa.1 | 80 ++++++++++++++++++++++++++++++++++++++ audio/japa/japa.SlackBuild | 95 +++++++++++++++++++++++++++++++++++++++++++++ audio/japa/japa.desktop | 8 ++++ audio/japa/japa.info | 10 +++++ audio/japa/japa.png | Bin 0 -> 1554 bytes audio/japa/setcap.sh | 1 + audio/japa/slack-desc | 19 +++++++++ 9 files changed, 233 insertions(+) create mode 100644 audio/japa/README create mode 100644 audio/japa/doinst.sh create mode 100644 audio/japa/japa.1 create mode 100644 audio/japa/japa.SlackBuild create mode 100644 audio/japa/japa.desktop create mode 100644 audio/japa/japa.info create mode 100644 audio/japa/japa.png create mode 100644 audio/japa/setcap.sh create mode 100644 audio/japa/slack-desc (limited to 'audio') diff --git a/audio/japa/README b/audio/japa/README new file mode 100644 index 000000000000..a1ccb6ce68f8 --- /dev/null +++ b/audio/japa/README @@ -0,0 +1,17 @@ +japa (audio spectrum analyser for jack-audio-connection-kit) + +Japa (JACK and ALSA Perceptual Analyser), is a 'perceptual' or +'psychoacoustic' audio spectrum analyser. Possible uses include spectrum +monitoring while mixing or mastering, evaluation of ambient noise, and +(using pink noise), equalisation of PA systems. + +By default, the package is built with '-march=native'. If you need a +generic package that can be installed on any Slackware machine with the +same ARCH as the build host, set FORCE_SLACK_CFLAGS=yes in the script's +environment. + +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/japa/doinst.sh b/audio/japa/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /dev/null +++ b/audio/japa/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/audio/japa/japa.1 b/audio/japa/japa.1 new file mode 100644 index 000000000000..0a907f43113d --- /dev/null +++ b/audio/japa/japa.1 @@ -0,0 +1,80 @@ +.TH JAPA 1 "January 14, 2014" +.SH NAME +japa \- JACK or ALSA perceptual analyser +.SH SYNOPSIS +.B japa +.RI { -h | -A | -J } +.RI [ options ] +.br +.SH DESCRIPTION +.B Japa +(JACK and ALSA Perceptual Analyser), is a 'perceptual' or 'psychoacoustic' +audio spectrum analyser. Possible uses include spectrum monitoring while mixing +or mastering, evaluation of ambient noise, and (using pink noise), equalisation +of PA systems. For more information see /usr/doc/japa-@VERSION@/README. +.SH OPTIONS +One out of +.B \-A +and +.B \-J +must be given. +.TP +.B \-h +Show summary of options. +.TP +.B \-J +Use JACK. +.TP +.B \-s +Select JACK server. Default is 'default' or $JACK_DEFAULT_SERVER environment variable. +Only valid with +.B \-J +option. +.TP +.B \-A +Use ALSA. Options +.B \-d +, +.B \-C +, +.B \-P +, +.B \-r +, +.B \-p +, and +.B \-n +are only valid with this option. +.TP +.B \-d +Specify ALSA device. Defaults to hw:0.0. This option sets the +playback and capture devices to the same device. For separate capture and playback, +use +.B \-C +and +.B \-P +instead. +.TP +.B \-C +Specify alsa capture device. +.TP +.B \-P +Specify alsa playback device. +.TP +.B \-r +Specify sample frequency. Defaults to 48000. +.TP +.B \-p +Specify period size. Defaults to 1024. +.TP +.B \-n +Specify number of fragments. Defaults to 2. +.SH SEE ALSO +.BR jackd (1). +.SH AUTHOR +japa was written by Fons Adriaensen . +.PP +This manual page was written by Helmut Grohne , +for the Debian project (but may be used by others). It was modified +by B. Watson $PKG/usr/man/man1/$PRGNAM.1.gz + +# icon grabbed from old web site +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +# desktop file written for this SlackBuild +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING README \ + $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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +if [ "${SETCAP:-yes}" = "yes" ]; then + cat $CWD/setcap.sh >> $PKG/install/doinst.sh + chown root:audio $PKG/usr/bin/$PRGNAM + chmod 0750 $PKG/usr/bin/$PRGNAM +fi + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/japa/japa.desktop b/audio/japa/japa.desktop new file mode 100644 index 000000000000..6b3dd44bb040 --- /dev/null +++ b/audio/japa/japa.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=JAPA +Comment=JACK and ALSA Perceptual Analyser +Exec=japa -J +Icon=japa +Terminal=false +Type=Application +Categories=AudioVideo;Audio;X-Jack; diff --git a/audio/japa/japa.info b/audio/japa/japa.info new file mode 100644 index 000000000000..8d717bcffaf9 --- /dev/null +++ b/audio/japa/japa.info @@ -0,0 +1,10 @@ +PRGNAM="japa" +VERSION="0.8.4" +HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/" +DOWNLOAD="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/japa-0.8.4.tar.bz2" +MD5SUM="966a8774e5b232bf055922dfdcc1b730" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jack-audio-connection-kit clxclient zita-alsa-pcmi" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/audio/japa/japa.png b/audio/japa/japa.png new file mode 100644 index 000000000000..dded6976e2e7 Binary files /dev/null and b/audio/japa/japa.png differ diff --git a/audio/japa/setcap.sh b/audio/japa/setcap.sh new file mode 100644 index 000000000000..908db87e5d27 --- /dev/null +++ b/audio/japa/setcap.sh @@ -0,0 +1 @@ +[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/japa diff --git a/audio/japa/slack-desc b/audio/japa/slack-desc new file mode 100644 index 000000000000..4cd4ec592d19 --- /dev/null +++ b/audio/japa/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------------------------------------------------------| +japa: japa (audio spectrum analyser for jack-audio-connection-kit) +japa: +japa: Japa (JACK and ALSA Perceptual Analyser), is a 'perceptual' or +japa: 'psychoacoustic' audio spectrum analyser. Possible uses include +japa: spectrum monitoring while mixing or mastering, evaluation of ambient +japa: noise, and (using pink noise), equalisation of PA systems. +japa: +japa: +japa: +japa: +japa: -- cgit v1.2.3