audio/pulseaudio: Handle bash-completion.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christoph Willing 2015-10-12 07:30:50 +07:00 committed by Willy Sudiarto Raharjo
parent ff4625be02
commit c6e5c054a6
1 changed files with 9 additions and 1 deletions

View File

@ -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