{
 "app_id": "org.kiwix.desktop",
 "source_url": "https://raw.githubusercontent.com/flathub/org.kiwix.desktop/master/org.kiwix.desktop.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-23.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:15:54.470401+00:00",
 "manifest": {
  "app-id": "org.kiwix.desktop",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-23.08",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "5.15-23.08",
  "sdk": "org.kde.Sdk",
  "command": "kiwix-desktop",
  "rename-icon": "kiwix-desktop",
  "finish-args": [
   "--device=dri",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--share=ipc"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/lib/*.la",
   "/bin/curl",
   "/bin/copydatabase",
   "/bin/kiwix-compile-resources",
   "/bin/kiwix-manage",
   "/bin/kiwix-read",
   "/bin/kiwix-search",
   "/bin/quest",
   "/bin/simple*",
   "/bin/xapian-*",
   "/share/aclocal",
   "/share/doc",
   "/share/man"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   {
    "name": "pugixml",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "dest-filename": "pugixml-1.2.tar.gz",
      "sha256": "0f422dad86da0a2e56a37fb2a88376aae6e931f22cc8b956978460c9db06136b",
      "url": "https://dev.kiwix.org/kiwix-build/pugixml-1.2.tar.gz",
      "dest": "src"
     },
     {
      "type": "patch",
      "path": "patches/pugixml_meson.patch"
     }
    ]
   },
   {
    "name": "zstd",
    "buildsystem": "meson",
    "subdir": "build/meson",
    "config-opts": [
     "-Dbin_programs=false",
     "-Dbin_contrib=false"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "zstd-1.5.5.tar.gz",
      "sha256": "98e9c3d949d1b924e28e01eccb7deed865eefebf25c2f21c702e5cd5b63b85e1",
      "url": "https://github.com/facebook/zstd/archive/refs/tags/v1.5.5.tar.gz"
     }
    ]
   },
   {
    "name": "xapian-core",
    "config-opts": [
     "--disable-sse",
     "--disable-backend-chert",
     "--disable-backend-remote",
     "--disable-documentation"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "xapian-core-1.4.23.tar.xz",
      "sha256": "30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c",
      "url": "https://dev.kiwix.org/kiwix-build/xapian-core-1.4.23.tar.xz"
     }
    ]
   },
   {
    "name": "libzim",
    "buildsystem": "meson",
    "config-opts": [
     "--wrap-mode=nodownload",
     "-Dtest_data_dir=none"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/openzim/libzim.git",
      "tag": "9.2.3",
      "commit": "398a3c25059ee0ec7e2987d6af336d67dd681ba1"
     }
    ]
   },
   {
    "name": "libmicrohttpd",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgnutls=disabled",
     "-Dgcrypt=disabled",
     "-Dcurl=disabled",
     "-Dexpat=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "libmicrohttpd-0.9.76.tar.gz",
      "sha256": "f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c",
      "url": "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.76.tar.gz"
     },
     {
      "type": "archive",
      "dest-filename": "libmicrohttpd_0.9.16-3_patch.zip",
      "sha256": "0954c094a0d4cfe0dd799d8df8a04face6669f7b4d51a7386a9c3e2d37b9c3b3",
      "url": "https://wrapdb.mesonbuild.com/v2/libmicrohttpd_0.9.76-3/get_patch"
     },
     {
      "type": "patch",
      "path": "patches/libmicrohttpd_meson_pkgconfig.patch"
     },
     {
      "type": "patch",
      "path": "patches/libmicrohttpd_meson_timeval_tvsec_size.patch"
     },
     {
      "type": "patch",
      "path": "patches/libmicrohttpd_meson_winet6.patch"
     }
    ]
   },
   {
    "name": "mustache",
    "buildsystem": "simple",
    "build-commands": [
     "cp mustache.hpp /app/include"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "Mustache-4.1.tar.gz",
      "sha256": "acd66359feb4318b421f9574cfc5a511133a77d916d0b13c7caa3783c0bfe167",
      "url": "https://github.com/kainjow/Mustache/archive/v4.1.tar.gz"
     }
    ]
   },
   {
    "name": "libkiwix",
    "buildsystem": "meson",
    "config-opts": [
     "--wrap-mode=nodownload"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/kiwix/libkiwix.git",
      "tag": "14.0.0",
      "commit": "20abebd6237fe5879bf79950a0e620edd620f33a"
     }
    ]
   },
   {
    "name": "aria2",
    "config-opts": [
     "--disable-libaria2",
     "--disable-websocket",
     "--without-sqlite3"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "aria2-1.37.0.tar.xz",
      "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b",
      "url": "https://dev.kiwix.org/kiwix-desktop/aria2-1.37.0.tar.xz"
     }
    ]
   },
   {
    "name": "kiwix-desktop",
    "buildsystem": "qmake",
    "build-options": {
     "env": {
      "QMAKEPATH": "/app/lib"
     }
    },
    "config-opts": [],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/kiwix/kiwix-desktop.git",
      "tag": "2.4.1",
      "commit": "eead4a224d62504485e2d3f02a7468787dd5ae89"
     }
    ]
   }
  ]
 }
}