{
 "app_id": "org.gajim.Gajim",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gajim.Gajim/master/org.gajim.Gajim.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-run/gnupg",
  "--filesystem=~/.gnupg",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.gnome.Mutter.IdleMonitor",
  "--talk-name=org.kde.kwalletd5",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.mpris.MediaPlayer2.*",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-21T13:25:03.922480+00:00",
 "manifest": {
  "app-id": "org.gajim.Gajim",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "gajim",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--system-talk-name=org.freedesktop.login1",
   "--talk-name=org.mpris.MediaPlayer2.*",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.gnome.Mutter.IdleMonitor",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.kwalletd5",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--filesystem=~/.gnupg",
   "--filesystem=xdg-run/gnupg",
   "--device=dri",
   "--env=PYTHONPATH=/app/plugins/site-packages",
   "--env=GI_TYPELIB_PATH=/app/lib/girepository-1.0:/app/plugins/lib/girepository-1.0"
  ],
  "add-extensions": {
   "org.gajim.Gajim.Plugin": {
    "directory": "plugins",
    "merge-dirs": "lib;site-packages",
    "add-ld-path": "lib",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "build-options": {
   "env": {
    "PIP_PREFIX": "/app",
    "PIP_DISABLE_PIP_VERSION_CHECK": "1"
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/gtk-doc",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "libspelling",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddocs=false",
     "-Dvapi=false"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libspelling/0.4/libspelling-0.4.10.tar.xz",
      "sha256": "56e3f01a3a18b575beea4c34349f99cdaba316e1f7c271b1231f7bcf5d9af73b"
     }
    ]
   },
   {
    "name": "farstream",
    "rm-configure": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://freedesktop.org/software/farstream/releases/farstream/farstream-0.2.9.tar.gz",
      "sha256": "cb7d112433cf7c2e37a8ec918fb24f0ea5cb293cfa1002488e431de26482f47b"
     },
     {
      "type": "patch",
      "path": "farstream-make-4.3.patch"
     }
    ]
   },
   "python3-modules.json",
   {
    "name": "gajim",
    "buildsystem": "simple",
    "build-commands": [
     "./make.py build --dist=flatpak",
     "./make.py install --dist=flatpak --prefix=/app",
     "pip3 install --no-build-isolation .",
     "cp -t ${FLATPAK_DEST} app-overrides.json"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://dev.gajim.org/gajim/gajim.git",
      "tag": "2.6.0"
     },
     {
      "type": "file",
      "path": "app-overrides.json"
     }
    ],
    "post-install": [
     "install -d /app/plugins"
    ]
   }
  ]
 }
}