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.

meson.build 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. project('pamac',['c','vala'])
  2. ENABLE_UPDATE_ICON = (get_option('ENABLE_UPDATE_ICON') != '')
  3. ENABLE_HAMBURGER = (get_option('ENABLE_HAMBURGER') != '')
  4. KDE_TRAY = (get_option('KDE_TRAY') != '')
  5. DISABLE_AUR = (get_option('DISABLE_AUR') != '')
  6. add_global_arguments('-DGETTEXT_PACKAGE="pamac"',language: 'c')
  7. gdk_3_0_dep = dependency('gdk-3.0')
  8. gtk_3_0_dep = dependency('gtk+-3.0')
  9. json_glib_1_0_dep = dependency('json-glib-1.0')
  10. libalpm_dep = dependency('libalpm')
  11. libcurl_dep = dependency('libcurl')
  12. libnotify_dep = dependency('libnotify')
  13. libsoup_2_4_dep = dependency('libsoup-2.4')
  14. polkit_gobject_1_dep = dependency('polkit-gobject-1')
  15. vte_2_91_dep = dependency('vte-2.91')
  16. if KDE_TRAY
  17. appindicator3_0_1_dep = dependency('appindicator3-0.1')
  18. endif
  19. gio_2_0_dep = dependency('gio-2.0')
  20. glib_2_0_dep = dependency('glib-2.0')
  21. gobject_2_0_dep = dependency('gobject-2.0')
  22. subdir('po')
  23. cfg_dbus_data = configuration_data()
  24. cfg_dbus_data.set ('DBUS_PREFIX',get_option('prefix'))
  25. meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-system.service'))
  26. meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-cleancache.service'))
  27. meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-cleancache.timer'))
  28. meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-mirrorlist.service'))
  29. meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-mirrorlist.timer'))
  30. pamac_installer_gresource_xml_generator = generator(find_program('glib-compile-resources'), arguments: [ '--sourcedir=@SOURCE_DIR@/data' , '--generate-source', '--target=@BUILD_DIR@/pamac.installer.gresource.xml.c', '@INPUT@'], output: '@PLAINNAME@.c')
  31. pamac_installer_gresource_xml_file_c = pamac_installer_gresource_xml_generator.process(['data/pamac.installer.gresource.xml'])
  32. pamac_manager_gresource_xml_generator = generator(find_program('glib-compile-resources'), arguments: [ '--sourcedir=@SOURCE_DIR@/data' , '--generate-source', '--target=@BUILD_DIR@/pamac.manager.gresource.xml.c', '@INPUT@'], output: '@PLAINNAME@.c')
  33. pamac_manager_gresource_xml_file_c = pamac_manager_gresource_xml_generator.process(['data/pamac.manager.gresource.xml'])
  34. pamac_transaction_gresource_xml_generator = generator(find_program('glib-compile-resources'), arguments: [ '--sourcedir=@SOURCE_DIR@/data' , '--generate-source', '--target=@BUILD_DIR@/pamac.transaction.gresource.xml.c', '@INPUT@'], output: '@PLAINNAME@.c')
  35. pamac_transaction_gresource_xml_file_c = pamac_transaction_gresource_xml_generator.process(['data/pamac.transaction.gresource.xml'])
  36. install_data('data/pamac-install.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
  37. install_data('data/pamac-manager.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
  38. if ENABLE_UPDATE_ICON
  39. install_data('data/pamac-updater.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
  40. endif
  41. if KDE_TRAY
  42. if (get_option('prefix').startswith('/home/'))
  43. message('Autostart file data/pamac-tray-appindicator.desktop will not be installed. You must create your own .desktop file and put it at ~/.config/autostart')
  44. else
  45. install_data('data/pamac-tray-appindicator.desktop',install_dir: '/etc/xdg/autostart')
  46. endif
  47. else
  48. if (get_option('prefix').startswith('/home/'))
  49. message('Autostart file data/pamac-tray.desktop will not be installed. You must create your own .desktop file and put it at ~/.config/autostart')
  50. else
  51. install_data('data/pamac-tray.desktop',install_dir: '/etc/xdg/autostart')
  52. endif
  53. endif
  54. dbus_cfg_org_pamac_system_service = configure_file(input: 'data/dbus/org.pamac.system.service',output: 'org.pamac.system.service', configuration: cfg_dbus_data)
  55. install_data(dbus_cfg_org_pamac_system_service,install_dir: join_paths(get_option('prefix'),get_option('datadir'),'dbus-1','system-services'))
  56. dbus_cfg_org_pamac_user_service = configure_file(input: 'data/dbus/org.pamac.user.service',output: 'org.pamac.user.service', configuration: cfg_dbus_data)
  57. install_data(dbus_cfg_org_pamac_user_service,install_dir: join_paths(get_option('prefix'),get_option('datadir'),'dbus-1','services'))
  58. install_data( 'data/dbus/org.pamac.system.conf',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'dbus-1','system.d'))
  59. install_data('data/org.pamac.main.gschema.xml', install_dir: join_paths(get_option('prefix'),get_option('datadir'), 'glib-2.0', 'schemas'))
  60. meson.add_install_script('meson_scripts/install_schemas.py')
  61. if not DISABLE_AUR
  62. install_data('data/org.pamac.aur.gschema.xml', install_dir: join_paths(get_option('prefix'),get_option('datadir'), 'glib-2.0', 'schemas'))
  63. meson.add_install_script('meson_scripts/install_schemas.py')
  64. endif
  65. install_data('data/icons/16x16/apps/system-software-install.png',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'icons','hicolor/16x16/apps'))
  66. install_data('data/icons/24x24/status/pamac-tray-no-update.png',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'icons','hicolor/24x24/apps'))
  67. install_data('data/icons/24x24/status/pamac-tray-update.png',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'icons','hicolor/24x24/apps'))
  68. install_data('data/icons/32x32/apps/system-software-install.png',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'icons','hicolor/32x32/apps'))
  69. install_data('data/pixmaps/package-generic.png',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  70. install_data( 'data/polkit/org.pamac.policy',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'polkit-1','actions'))
  71. install_data( 'data/mime/x-alpm-package.xml',install_dir: join_paths(get_option('prefix'),get_option('datadir'),'mime','packages'))
  72. subdir('src')
  73. subdir('src/pamac-user-daemon')
  74. subdir('src/pamac-tray')
  75. subdir('src/pamac-clean-cache')
  76. subdir('src/pamac-install')
  77. subdir('src/pamac-manager')
  78. subdir('src/pamac-system-daemon')