summaryrefslogtreecommitdiff
path: root/audio/volumeicon/volumeicon.SlackBuild
diff options
context:
space:
mode:
authorDaniel Cash <dacashman@gmail.com>2011-12-18 22:48:22 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-18 22:49:18 -0600
commit3f132a963853c73dc830bb2c16642eca4aa3c0f0 (patch)
tree55f0d8d7ff95ae0044006b1f9890ed3eda66c1be /audio/volumeicon/volumeicon.SlackBuild
parenta55255b330d86b7d5e1409915c998090bd6c5c5e (diff)
downloadslackbuilds-3f132a963853c73dc830bb2c16642eca4aa3c0f0.tar.gz
audio/volumeicon: Updated for version 0.4.5.
This commit includes some tweaks to the variable handling (by the usual "can't leave well enough alone" guy) --rworkman Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/volumeicon/volumeicon.SlackBuild')
-rw-r--r--audio/volumeicon/volumeicon.SlackBuild29
1 files changed, 5 insertions, 24 deletions
diff --git a/audio/volumeicon/volumeicon.SlackBuild b/audio/volumeicon/volumeicon.SlackBuild
index b2458eb8e1..5584f98228 100644
--- a/audio/volumeicon/volumeicon.SlackBuild
+++ b/audio/volumeicon/volumeicon.SlackBuild
@@ -5,7 +5,7 @@
# Written by Daniel Cash
PRGNAM=volumeicon
-VERSION=${VERSION:-0.4.3}
+VERSION=${VERSION:-0.4.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,28 +36,10 @@ else
LIBDIRSUFFIX=""
fi
-# Pass OSS=yes if you want to build with OSS support. Enabling this will
-# disable ALSA support.
-OSS=${OSS:-"NO"}
-
-
-# Pass NOTIFY=yes to enable notifications. This adds a dependency
-# for libnotify >= 0.5.0.
-NOTIFY=${NOTIFY:-"NO"}
-
set -e
-if [ "${OSS:-yes}" = "yes" ]; then
- oss_params="--enable-oss"
-else
- oss_params=""
-fi
-
-if [ "${NOTIFY:-yes}" = "yes" ]; then
- notify_params="--enable-notify"
-else
- notify_params=""
-fi
+oss_params="" ; [ "${OSS:-no}" != "no" ] && oss_params="--enable-oss"
+notify_params="" ; [ "${NOTIFY:-no}" != "no" ] && notify_params="--enable-notify"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -81,9 +63,8 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- $oss_params \
- $notify_params \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ $oss_params $notify_params
make
make install-strip DESTDIR=$PKG