aboutsummaryrefslogtreecommitdiff
path: root/audio/pulseaudio
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2015-10-12 07:30:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-12 07:30:50 +0700
commitc6e5c054a6bff5ca352cac142d955081c09d738e (patch)
treeca4c04c948ca3ba7d698e660b04bc51047a5f8b7 /audio/pulseaudio
parentff4625be02ceead36df0079bc484ed84e159711c (diff)
audio/pulseaudio: Handle bash-completion.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/pulseaudio')
-rw-r--r--audio/pulseaudio/pulseaudio.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/audio/pulseaudio/pulseaudio.SlackBuild b/audio/pulseaudio/pulseaudio.SlackBuild
index 32d7dd9ff691..5d2fd839573f 100644
--- a/audio/pulseaudio/pulseaudio.SlackBuild
+++ b/audio/pulseaudio/pulseaudio.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=pulseaudio
VERSION=${VERSION:-7.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,6 +63,13 @@ else
ORC=no
fi
+if pkg-config --exists bash-completion ; then
+ BASHCOMPLETIONDIR=$(pkg-config --variable=completionsdir bash-completion)
+else
+ echo "Setting completions directory manually."
+ BASHCOMPLETIONDIR=/usr/share/bash-completion/completions
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./bootstrap.sh \
@@ -78,6 +85,7 @@ CXXFLAGS="$SLKCFLAGS" \
--with-system-user=pulse \
--with-system-group=pulse \
--with-access-group=audio \
+ --with-bash-completion-dir=$BASHCOMPLETIONDIR \
--build=$ARCH-slackware-linux
make check