{
  "id" : "org.qbittorrent.qBittorrent",
  "runtime" : "org.kde.Platform",
  "runtime-version" : "6.10",
  "runtime-commit" : "0af8c74be016b93f6f72bbdc3f179df47dc1274d40b3bb05c824fd1360b1746c",
  "sdk" : "org.kde.Sdk",
  "sdk-commit" : "9b03a9939e6155651873d36c88b4d03a2eb02ea68f6088b0e4960d6934261162",
  "command" : "qbittorrent",
  "modules" : [
    {
      "name" : "boost",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz",
          "sha256" : "2575e74ffc3ef1cd0babac2c1ee8bdb5782a0ee672b1912da40e5b4b591ca01f",
          "type" : "archive"
        }
      ],
      "build-commands" : [
        "./bootstrap.sh --prefix=/app",
        "./b2 install --with-headers cxxflags=\"$CXXFLAGS\" linkflags=\"$LDFLAGS\" -j $FLATPAK_BUILDER_N_JOBS"
      ]
    },
    {
      "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" : [
        {
          "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"
          },
          "type" : "git"
        }
      ]
    },
    {
      "name" : "qbittorrent",
      "buildsystem" : "cmake-ninja",
      "builddir" : true,
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
      ],
      "sources" : [
        {
          "url" : "https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-5.2.2.tar.gz",
          "sha256" : "177efdadcd66fa66c473e97ee8ed117ce33ccb9a0a25a0716b62245ce506d1d7",
          "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\""
          },
          "type" : "archive"
        }
      ]
    },
    {
      "name" : "testing",
      "buildsystem" : "simple",
      "build-commands" : [
        "QT_QPA_PLATFORM=offscreen qbittorrent -v"
      ]
    }
  ],
  "cleanup" : [
    "/include",
    "/lib/*.a",
    "/lib/*.la",
    "/lib/cmake",
    "/lib/pkgconfig",
    "/share/cmake",
    "/share/man"
  ],
  "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"
  ],
  "rename-icon" : "qbittorrent",
  "source-date-epoch" : 1321009871
}