cfg_pamac = configuration_data() cfg_pamac.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir'))) cfg_pamac.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac')) cfg_pamac.set('GETTEXT_PACKAGE', 'pamac') cfg_pamac.set('RELEASE_NAME', 'pamac') cfg_pamac.set('PREFIX', get_option('prefix')) cfg_pamac.set('VERSION', '6.1.0') cfg_pamac.set('TESTSRCDIR', meson.source_root()) cfgfile_1 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac) pamac_deps = [gdk_3_0_dep] pamac_deps += [gtk_3_0_dep] pamac_deps += [libalpm_dep] pamac_deps += [libnotify_dep] pamac_deps += [vte_2_91_dep] pamac_deps += [gio_2_0_dep] pamac_deps += [glib_2_0_dep] pamac_deps += [gobject_2_0_dep] pamac_sources = [cfgfile_1] pamac_sources += ['alpm_config.vala'] pamac_sources += ['choose_ignorepkgs_dialog.vala'] pamac_sources += ['choose_provider_dialog.vala'] pamac_sources += ['common.vala'] pamac_sources += ['mirrors_config.vala'] pamac_sources += ['package.vala'] pamac_sources += ['pamac_config.vala'] pamac_sources += ['preferences_dialog.vala'] pamac_sources += ['progress_box.vala'] pamac_sources += ['transaction.vala'] pamac_sources += ['transaction_sum_dialog.vala'] if DISABLE_AUR pamac_sources += [pamac_transaction_no_aur_gresource_xml_file_c] else pamac_sources += [pamac_transaction_gresource_xml_file_c] endif pamac_vala_args = ['--pkg','posix'] pamac_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')] if DISABLE_AUR pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction_no_aur.gresource.xml')] else pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')] endif pamac_c_args = [] if DISABLE_AUR pamac_vala_args += ['-D', 'DISABLE_AUR'] pamac_c_args += ['-DDISABLE_AUR'] endif if KDE_TRAY pamac_vala_args += ['-D', 'KDE_TRAY'] pamac_c_args += ['-DKDE_TRAY'] endif pamac_deps += [meson.get_compiler('c').find_library('m', required : false)] pamac_vala_args += ['--gir=Pamac-6.0.gir'] Pamac_library = shared_library('Pamac',pamac_sources,dependencies: pamac_deps,vala_args: pamac_vala_args,c_args: pamac_c_args,version: '6.1.0',soversion: '6',install: true) pamac_requires = [] pamac_requires += ['gdk-3.0'] pamac_requires += ['gtk+-3.0'] pamac_requires += ['libalpm'] pamac_requires += ['libnotify'] pamac_requires += ['vte-2.91'] pamac_requires += ['gio-2.0'] pamac_requires += ['glib-2.0'] pamac_requires += ['gobject-2.0'] pkg_mod = import('pkgconfig') pkg_mod.generate(libraries : Pamac_library, version : '6.1.0', name : 'Pamac', filebase : 'Pamac', description : 'Pamac', requires : pamac_requires) install_data(join_paths(meson.current_source_dir(),'Pamac.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi')) meson.add_install_script(join_paths(meson.source_root(),'meson_scripts','install_library.sh'),'src','Pamac','Pamac-6.0.gir')