{
 "app_id": "org.qbittorrent.qBittorrent",
 "source_url": "https://raw.githubusercontent.com/flathub/org.qbittorrent.qBittorrent/master/org.qbittorrent.qBittorrent.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.PowerManagement",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.ayatana.indicator.application",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.gnome.SessionManager",
  "--system-talk-name=org.freedesktop.login1",
  "--system-talk-name=org.freedesktop.UPower"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T17:21:24.285189+00:00",
 "manifest": {
  "app-id": "org.qbittorrent.qBittorrent",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "6.10",
  "command": "qbittorrent",
  "rename-icon": "qbittorrent",
  "finish-args": [
   "--device=dri",
   "--filesystem=host",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--system-talk-name=org.freedesktop.login1",
   "--system-talk-name=org.freedesktop.UPower",
   "--talk-name=org.ayatana.indicator.application",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.PowerManagement",
   "--talk-name=org.gnome.SessionManager",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/cmake",
   "/share/man"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app",
     "./b2 install --with-headers cxxflags=\"$CXXFLAGS\" linkflags=\"$LDFLAGS\" -j $FLATPAK_BUILDER_N_JOBS"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz",
      "sha256": "2575e74ffc3ef1cd0babac2c1ee8bdb5782a0ee672b1912da40e5b4b591ca01f"
     }
    ]
   },
   {
    "name": "libtorrent",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DBUILD_SHARED_LIBS=OFF",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_CXX_STANDARD=20",
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-Ddeprecated-functions=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/arvidn/libtorrent.git",
      "commit": "c5ff6c3186a92ddec01f6f0a8146aaedb4a1c3f9",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/arvidn/libtorrent/branches/RC_1_2",
       "commit-query": ".commit.sha"
      }
     }
    ]
   },
   {
    "name": "qbittorrent",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cflags": "-fPIC",
     "cxxflags": "-fPIC"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-5.2.3.tar.gz",
      "sha256": "a5f540cdfb0053f0ce1a1c62ccd92d08214f16bcb2c512569ec54d81531e541f",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/qbittorrent/qBittorrent/tags",
       "version-query": "map(.name | select(test(\"^release-[\\\\d\\\\.]+$\"))) | first | sub(\"^release-\"; \"\")",
       "url-query": "\"https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-\" + $version + \".tar.gz\""
      }
     }
    ]
   },
   {
    "name": "testing",
    "buildsystem": "simple",
    "build-commands": [
     "QT_QPA_PLATFORM=offscreen qbittorrent -v"
    ]
   }
  ]
 }
}