-install_data('update-plocate.sh',
- install_dir: '/etc/cron.daily',
- rename: 'plocate')
+conf_data = configuration_data()
+conf_data.set('PROCESSED_BY_MESON', '1')
+conf_data.set('sbindir', get_option('prefix') + '/' + get_option('sbindir'))
+conf_data.set('locategroup', get_option('locategroup'))
+update_script = configure_file(input: 'update-plocate.sh',
+ output: 'update-plocate.sh',
+ configuration: conf_data)
+
+if get_option('install_cron')
+ install_data(update_script,
+ install_dir: '/etc/cron.daily',
+ rename: 'plocate')
+endif