+updatedb_progname = get_option('updatedb_progname')
+executable(updatedb_progname, ['updatedb.cpp', 'database-builder.cpp', 'conf.cpp', 'lib.cpp', 'bind-mount.cpp', 'complete_pread.cpp'],
+ dependencies: [zstddep, threaddep],
+ install: true,
+ install_dir: get_option('sbindir'))
+
+conf_data = configuration_data()
+conf_data.set('PROCESSED_BY_MESON', '1')
+conf_data.set('sbindir', join_paths(get_option('prefix'), get_option('sbindir')))
+conf_data.set('groupname', get_option('locategroup'))
+conf_data.set('dbfile', dbfile)
+conf_data.set('updatedb_conf', '/etc/updatedb.conf')
+conf_data.set('updatedb_progname', updatedb_progname)
+update_script = configure_file(input: 'update-plocate.sh',
+ output: 'update-plocate.sh',
+ configuration: conf_data)