summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 32d7dd9ff6..5d2fd83957 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