packagekit/contrib/command-not-found/meson.build

29 lines
893 B
Meson
Raw Normal View History

2022-06-07 09:18:53 -07:00
executable(
'pk-command-not-found',
'pk-command-not-found.c',
dependencies: packagekit_glib2_dep,
install: true,
install_dir: get_option('libexecdir'),
c_args: [
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-DG_LOG_DOMAIN="PackageKit"',
'-DPACKAGE_LOCALE_DIR="@0@"'.format(join_paths(get_option('prefix'), get_option('localedir'))),
'-DSYSCONFDIR="@0@"'.format(get_option('sysconfdir')),
]
)
bashprofile_config_data = configuration_data()
bashprofile_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir')))
configure_file(
input: 'PackageKit.sh.in',
output: 'PackageKit.sh',
configuration: bashprofile_config_data,
install: true,
install_dir: join_paths(get_option('sysconfdir'), 'profile.d'),
)
install_data(
'CommandNotFound.conf',
install_dir: join_paths(get_option('sysconfdir'), 'PackageKit'),
)