11project (
22 ' linux-enable-ir-emitter' ,
33 ' cpp' ,
4- version : ' 6.0.5 ' ,
4+ version : ' 6.0.6 ' ,
55 license : ' MIT' ,
66 default_options : [
77 ' cpp_std=c++20' ,
@@ -39,25 +39,20 @@ spdlog_dep = dependency('spdlog', include_type: 'system')
3939############
4040# Variable #
4141############
42- sysconf_dir = ' / ' / get_option (' sysconfdir' ) / meson .project_name()
42+ config_dir = get_option (' sysconfdir' ) / meson .project_name()
4343log_dir = get_option (' localstatedir' ) / ' log' / meson .project_name()
44- cfg_data = configuration_data (
45- {
46- ' version' : meson .project_version(),
47- ' configdir' : sysconf_dir,
48- ' log_file' : log_dir / meson .project_name() + ' .log' ,
49- },
50- )
5144
5245##############
5346# Executable #
5447##############
5548subdir (' src' )
5649
57- #################
58- # Configuration #
59- #################
60- install_emptydir(sysconf_dir)
50+ ################
51+ # Config + Log #
52+ ################
53+ install_emptydir(config_dir)
54+
55+ install_emptydir(log_dir)
6156
6257####################
6358# Shell completion #
@@ -80,20 +75,18 @@ install_data(
8075if get_option (' boot_service' ) == ' systemd'
8176 install_data (
8277 ' boot_service/systemd/linux-enable-ir-emitter.service' ,
83- install_dir : ' / ' / get_option (' sysconfdir' ) / ' systemd/system' ,
78+ install_dir : get_option (' sysconfdir' ) / ' systemd/system' ,
8479 )
8580elif get_option (' boot_service' ) == ' openrc'
8681 install_data (
8782 ' boot_service/openrc/linux-enable-ir-emitter' ,
88- install_dir : ' / ' / get_option (' sysconfdir' ) / ' init.d' ,
83+ install_dir : get_option (' sysconfdir' ) / ' init.d' ,
8984 )
9085endif
9186
9287##########
9388# Others #
9489##########
95- install_emptydir(log_dir)
96-
9790install_data (
9891 ' README.md' ,
9992 install_dir : get_option (' datadir' ) / ' doc' / meson .project_name(),
0 commit comments