X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=2a7d20c7b24736e7d837419e4243f14001bdf1e9;hb=95c9736bf95ad1b457e531cd1dc1664ed2667378;hp=44146184b5e2f379aae597e96d0cee4c91fca8ae;hpb=44ce04acb27d8e0551e3e1b0783ef44c384c4b28;p=plocate diff --git a/meson.build b/meson.build index 4414618..2a7d20c 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,8 @@ -project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.1.12') +project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.1.15') add_project_arguments('-DGROUPNAME="' + get_option('locategroup') + '"', language: 'cpp') add_project_arguments('-DUPDATEDB_CONF="/etc/updatedb.conf"', language: 'cpp') -dbdir = join_paths(get_option('sharedstatedir'), 'plocate') -dbfile = join_paths(dbdir, 'plocate.db') +dbfile = join_paths(get_option('sharedstatedir'), get_option('dbpath')) add_project_arguments('-DDBFILE="' + dbfile + '"', language: 'cpp') add_project_arguments('-DPACKAGE_NAME="plocate"', language: 'cpp') add_project_arguments('-DPACKAGE_VERSION="' + meson.project_version() + '"', language: 'cpp') @@ -56,7 +55,8 @@ update_script = configure_file(input: 'update-plocate.sh', output: 'update-plocate.sh', configuration: conf_data) -meson.add_install_script('mkdir.sh', dbdir) +fs = import('fs') +meson.add_install_script('mkdir.sh', fs.parent(dbfile)) if get_option('install_cron') install_data(update_script,