summaryrefslogtreecommitdiff
path: root/audio/volumeicon/volumeicon.SlackBuild
diff options
context:
space:
mode:
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