diff options
Diffstat (limited to 'audio/volume.app')
-rw-r--r-- | audio/volume.app/README | 32 | ||||
-rw-r--r-- | audio/volume.app/volume.app.SlackBuild | 22 |
2 files changed, 33 insertions, 21 deletions
diff --git a/audio/volume.app/README b/audio/volume.app/README index fefd6b1e97..b61772402f 100644 --- a/audio/volume.app/README +++ b/audio/volume.app/README @@ -1,35 +1,37 @@ -========================================================================== +======================================================================== Volume.app -- a simple windowmaker volume control dockapp -========================================================================== +======================================================================== -This is a simple volume control for the AfterStep / BlackBox / Window -Maker dock. Volume.app is intended to be an extremely simple, efficient, and -attractive interface to a system's sound mixer. +This is a simple volume control for the AfterStep / BlackBox / +Window Maker dock. Volume.app is intended to be an extremely simple, +efficient, and attractive interface to a system's sound mixer. Currently, only OSS mixer interface is supported. ALSA mixer can be used through ALSA's OSS emulation. -========================================================================== +======================================================================== NOTE: The hacks/mods are for "ALSA's OSS emulation" in ALSA systems. -NOTE2: There are two 'mod' files: "config.h.in.mod" and "volume.app.c.mod". - If you want to use them, simple rename them to each "original filename" - (remove ".mod" on filename). +NOTE2: There are two 'mod' files: "config.h.in.mod" and + "volume.app.c.mod". + If you want to use them, simply rename them to each "original + filename" (remove ".mod" on filename). "volume.app.c.mod" is a hack to fix the mute/unmute problem for ALSA systems. (It uses "amixer" command as background). "config.h.in.mod" is just a covenience to set some parameters. - eg: If is notified that the app is not running on the right mixer + eg: If you notice that the app is not running on the right mixer (more than 1 soundcard), you may try to set the default mixer before creating the package! - 'cat /proc/asound/oss/sndstat' and search the "Mixers" section. - locate the desired 'mixer number' and then modify file - "config.h.in.mod" at "DEFAULT_MIXER_DEVICE" parameter. + 'cat /proc/asound/oss/sndstat' and search the "Mixers" + section. Locate the desired 'mixer number' and then modify + file "config.h.in.mod" at "DEFAULT_MIXER_DEVICE" parameter. - Eg2: if desired mixer is "2", modify "config.h.in.mod" as below: + Eg2: if desired mixer is "2", modify "config.h.in.mod" + as below: DEFAULT_MIXER_DEVICE "/dev/mixer" ( to ) @@ -38,4 +40,4 @@ NOTE2: There are two 'mod' files: "config.h.in.mod" and "volume.app.c.mod". Again, do not forget to rename the file "config.h.in.mod" to "config.h.in" before creating the package. -========================================================================== +======================================================================== diff --git a/audio/volume.app/volume.app.SlackBuild b/audio/volume.app/volume.app.SlackBuild index 9fa3554c56..6e2aba74dd 100644 --- a/audio/volume.app/volume.app.SlackBuild +++ b/audio/volume.app/volume.app.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Volume.app @@ -22,26 +22,36 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=volume.app VERSION=${VERSION:-1.1a} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -93,4 +103,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |