summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/meson.build')
-rw-r--r--shell-completion/bash/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
new file mode 100644
index 0000000..db4b00b
--- /dev/null
+++ b/shell-completion/bash/meson.build
@@ -0,0 +1,20 @@
+if bashcompletiondir != 'no'
+ aliases = [
+ 'pacat',
+ 'pacmd',
+ 'pactl',
+ 'padsp',
+ 'paplay',
+ 'parec',
+ 'parecord',
+ 'pasuspender',
+ ]
+
+ install_data('pulseaudio', install_dir : bashcompletiondir)
+
+ foreach alias : aliases
+ dst = join_paths(bashcompletiondir, alias)
+ cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pulseaudio', dst)
+ meson.add_install_script('sh', '-c', cmd)
+ endforeach
+endif