aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2015-05-29 05:17:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-31 10:36:19 +0700
commit8e935b491a48d3c62e7798b0aa67e0b32d2ad4cb (patch)
tree80ed41070190ac69a90b0931e8df13dbac5b7066 /audio
parente980d0017b4edf9a43aa8b4368dd56344d6fad83 (diff)
audio/pavumeter: Added (PulseAudio Volume Meter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/pavumeter/README1
-rw-r--r--audio/pavumeter/doinst.sh3
-rw-r--r--audio/pavumeter/pavumeter.SlackBuild86
-rw-r--r--audio/pavumeter/pavumeter.info10
-rw-r--r--audio/pavumeter/slack-desc19
5 files changed, 119 insertions, 0 deletions
diff --git a/audio/pavumeter/README b/audio/pavumeter/README
new file mode 100644
index 0000000000000..7e38fd24ea5b6
--- /dev/null
+++ b/audio/pavumeter/README
@@ -0,0 +1 @@
+A PulseAudio volume meter.
diff --git a/audio/pavumeter/doinst.sh b/audio/pavumeter/doinst.sh
new file mode 100644
index 0000000000000..3857649f506a8
--- /dev/null
+++ b/audio/pavumeter/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
+fi
diff --git a/audio/pavumeter/pavumeter.SlackBuild b/audio/pavumeter/pavumeter.SlackBuild
new file mode 100644
index 0000000000000..0e2dff5e2d6e4
--- /dev/null
+++ b/audio/pavumeter/pavumeter.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/sh
+#
+# Slackware build script for pavumeter
+#
+# Copyright 2015 Erik W. Hanson, Minneapolis, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=pavumeter
+VERSION=${VERSION:-0.9.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -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 -ue
+
+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 .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog LICENSE 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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/pavumeter/pavumeter.info b/audio/pavumeter/pavumeter.info
new file mode 100644
index 0000000000000..8c44ad6f5b787
--- /dev/null
+++ b/audio/pavumeter/pavumeter.info
@@ -0,0 +1,10 @@
+PRGNAM="pavumeter"
+VERSION="0.9.3"
+HOMEPAGE="http://0pointer.de/lennart/projects/pavumeter/"
+DOWNLOAD="http://0pointer.de/lennart/projects/pavumeter/pavumeter-0.9.3.tar.gz"
+MD5SUM="3a6b36cfefa8d6dd00084dafa50c934c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="pulseaudio gtkmm"
+MAINTAINER="Erik Hanson"
+EMAIL="erik@slackbuilds.org"
diff --git a/audio/pavumeter/slack-desc b/audio/pavumeter/slack-desc
new file mode 100644
index 0000000000000..476d4fa4974b0
--- /dev/null
+++ b/audio/pavumeter/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------------------------------------------------------|
+pavumeter: pavumeter (PulseAudio Volume Meter)
+pavumeter:
+pavumeter: A PulseAudio volume meter.
+pavumeter:
+pavumeter:
+pavumeter:
+pavumeter:
+pavumeter:
+pavumeter:
+pavumeter:
+pavumeter: