--- dconf-0.30.1/meson_options.txt.orig 2018-10-22 23:53:04.000000000 +0200 +++ dconf-0.30.1/meson_options.txt 2018-10-30 20:32:08.195263612 +0100 @@ -1,3 +1,4 @@ option('bash_completion', type: 'boolean', value: true, description: 'install bash completion files') +option('bash_completion_dir', type: 'string', value: '') option('man', type: 'boolean', value: true, description: 'generate man pages') option('gtk_doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation') --- dconf-0.38.0/meson.build.orig 2020-09-13 10:26:21.295046156 +0200 +++ dconf-0.38.0/meson.build 2020-09-13 10:29:23.197394039 +0200 @@ -50,12 +50,16 @@ enable_bash_completion = get_option('bash_completion') if enable_bash_completion + if get_option('bash_completion_dir') != '' + completions_dir = get_option('bash_completion_dir') + else bash_completion_dep = dependency('bash-completion') completions_dir = bash_completion_dep.get_pkgconfig_variable( 'completionsdir', # bash-completion 2.10 changed the substitutions define_variable: bash_completion_dep.version().version_compare('>= 2.10') ? ['datadir', dconf_datadir] : ['prefix', dconf_prefix], ) + endif endif configure_file(