mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-02-12 14:28:34 +00:00
As the bash-completion maintainers have pointed out upstream (https://github.com/scop/bash-completion/issues/1317#issuecomment-2619702773) the script requires at least bash-completions 2.12. So let's check for that also in our meson.build
14 lines
434 B
Meson
14 lines
434 B
Meson
bashcompdir = get_option('bashcompdir')
|
|
if bashcompdir == ''
|
|
bashcomp = dependency('bash-completion', version: '>= 2.12', required: get_option('bash_completion'))
|
|
if bashcomp.found()
|
|
bashcompdir = bashcomp.get_pkgconfig_variable('completionsdir')
|
|
else
|
|
message('Won\'t install bash completion due to missing dependencies')
|
|
endif
|
|
endif
|
|
|
|
if bashcompdir != ''
|
|
install_data('secret-tool', install_dir: bashcompdir)
|
|
endif
|