Graphical package manager for pacman based on pamac 5.x.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
1.8 KiB

  1. cfg_pamac_manager = configuration_data()
  2. cfg_pamac_manager.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac_manager.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac_manager.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac_manager.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac_manager.set('PREFIX', get_option('prefix'))
  7. cfg_pamac_manager.set('VERSION', '6.3.5')
  8. cfg_pamac_manager.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_7 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_manager)
  10. pamac_manager_deps = [gtk_3_0_dep]
  11. pamac_manager_deps += [gio_2_0_dep]
  12. pamac_manager_deps += [glib_2_0_dep]
  13. pamac_manager_deps += [gobject_2_0_dep]
  14. pamac_manager_sources = [cfgfile_7]
  15. pamac_manager_sources += ['history_dialog.vala']
  16. pamac_manager_sources += ['manager.vala']
  17. pamac_manager_sources += ['manager_window.vala']
  18. pamac_manager_sources += [pamac_manager_gresource_xml_file_c]
  19. pamac_manager_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  20. pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager.gresource.xml')]
  21. pamac_manager_dependencies = [Pamac_library]
  22. pamac_manager_c_args = []
  23. if DISABLE_AUR
  24. pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
  25. pamac_manager_c_args += ['-DDISABLE_AUR']
  26. endif
  27. if KDE_TRAY
  28. pamac_manager_vala_args += ['-D', 'KDE_TRAY']
  29. pamac_manager_c_args += ['-DKDE_TRAY']
  30. endif
  31. pamac_manager_hfolders = ['../../src']
  32. executable('pamac-manager',pamac_manager_sources,dependencies: pamac_manager_deps,vala_args: pamac_manager_vala_args,c_args: pamac_manager_c_args,link_with: pamac_manager_dependencies,include_directories: include_directories(pamac_manager_hfolders),install: true)
  33. meson.add_install_script('sh', '-c', 'ln -sf pamac-manager ${DESTDIR}/${MESON_INSTALL_PREFIX}/bin/pamac-updater')