From c6e5c054a6bff5ca352cac142d955081c09d738e Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Mon, 12 Oct 2015 07:30:50 +0700 Subject: audio/pulseaudio: Handle bash-completion. Signed-off-by: Willy Sudiarto Raharjo --- audio/pulseaudio/pulseaudio.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'audio/pulseaudio') 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 -- cgit v1.2.3