audio/listener: Updated for version 2.0.1.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Pierre Cazenave 2011-10-19 08:06:04 -02:00 committed by Niels Horn
parent c572b42ea8
commit 8d5c20db4a
4 changed files with 27 additions and 29 deletions

View File

@ -1,16 +1,16 @@
This program listens for sound. If it detects any, it starts recording
automatically and also automatically stops when things become silent again.
Listener requires portaudio.
In order to use this, a few steps need to be completed first:
1. Remove the line: filter = ./my_filter2.so.0.1 0 3000.0 1.0
from /etc/listener.conf.
1. Run setlistener (as an ordinary user), and use the
cursor keys on your keybord to move the "|" left and right until
<silence> appears in place of <SOUND!>. Make a note of the "Current
detection level", and modify the detect_level value in
/etc/listener.conf to match.
2. Run setlistener (as an ordinary user), and use the
cursor keys on your keybord to move the "|" left and right until <silence>
appears in place of <SOUND!>. Make a note of the "Current detection level",
and modify the detect_level value in /etc/listener.conf to match.
3. To start, run listener -f (to prevent it forking to the background. Omit -f
if you wish to fork). Output will be saved in the current directory as a
wav file by default.
2. To start, run listener -f (to prevent it forking to the background.
Omit -f if you wish to fork). Output will be saved in the current
directory as an ogg file by default.

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Slackware build script for listener.
#
@ -12,19 +12,18 @@
#
# Created 07/08/2008
# Updated for Slackware64 28/05/2009
# Updated to version 2.0.1 09/10/2011
#
PRGNAM=listener
VERSION=1.7.2
BUILD=${BUILD:-2}
VERSION=2.0.1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -54,15 +53,13 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvzf $CWD/$PRGNAM-$VERSION.tgz
tar -xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
find . \
\( -perm 777 -o -perm 775 -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 {} \;
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# make the destination directories for the Makefile, otherwise it keels over.
mkdir -p $PKG/{usr/bin,etc}
@ -76,6 +73,7 @@ sed -i 's@/usr/local/etc/listener.conf@/etc/listener.conf@' listener.h
# fix the documentation reference to the config file too
sed -i 's@/usr/local/etc/listener.conf@/etc/listener.conf@' manual.html
CFLAGS="$SLKCFLAGS" \
make install INSTALL_PREFIX=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@ -86,7 +84,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
# don't clobber existing .conf files in /etc
# Don't clobber existing .conf files in /etc
mv $PKG/etc/listener.conf $PKG/etc/listener.conf.new
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="listener"
VERSION="1.7.2"
VERSION="2.0.1"
HOMEPAGE="http://www.vanheusden.com/listener/"
DOWNLOAD="http://www.vanheusden.com/listener/listener-1.7.2.tgz"
MD5SUM="8ad9c24c45c7d28aed606304a2bf80bf"
DOWNLOAD="http://www.vanheusden.com/listener/listener-2.0.1.tgz"
MD5SUM="c793da01635e25ec04b87d3ed83d359d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Pierre Cazenave"
EMAIL="pwcazenave <at> gmail <dot> com"
APPROVED="dsomero"
APPROVED="dsomero,Niels Horn"

View File

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler-----------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
listener: listener (listens for sound. If detected, it starts recording)
listener:
listener: This program listens for sound. If it detects any, it starts
@ -13,7 +13,7 @@ listener: recording automatically and also automatically stops when things
listener: become silent again.
listener:
listener: http://www.vanheusden.com/listener
listener:
listener:
listener:
listener:
listener:
listener: