{
 "app_id": "org.vita3k.vita3k",
 "source_url": "https://raw.githubusercontent.com/fpiesche/flatpak-builds/main/apps/org.vita3k.vita3k/org.vita3k.vita3k.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--device=dri",
  "--socket=pulseaudio",
  "--share=network"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-21T13:31:59.457675+00:00",
 "manifest": {
  "app-id": "org.vita3k.vita3k",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "Vita3K",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.ffmpeg-full": {
    "directory": "lib/ffmpeg",
    "add-ld-path": ".",
    "version": "6.11",
    "autodownload": true,
    "autodelete": false
   }
  },
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/cmake"
  ],
  "cleanup-commands": [
   "mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "build-options": {
   "strip": true,
   "no-debuginfo": true
  },
  "modules": [
   {
    "name": "boost",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DBOOST_INCLUDE_LIBRARIES=filesystem;icl;variant"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.92.0/boost-1.92.0-cmake.tar.xz",
      "sha256": "9bed76128d4e46755dbe818487788c6fceb6f72b378f4daa49b7e1e600d9088d",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/boostorg/boost/releases/latest",
       "version-query": ".tag_name | sub(\"boost-\"; \"\")",
       "url-query": ".assets[] | select(.name | test(\"^boost-.*-cmake.tar.xz$\")).browser_download_url"
      }
     }
    ]
   },
   {
    "name": "vita3k",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm20/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "AR": "llvm-ar",
      "CC": "clang",
      "CXX": "clang++",
      "RANLIB": "llvm-ranlib"
     },
     "ldflags": "-fuse-ld=lld"
    },
    "config-opts": [
     "-DUSE_DISCORD_RICH_PRESENCE=OFF",
     "-DVITA3K_FORCE_SYSTEM_BOOST=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/vita3k/Vita3K.git",
      "commit": "b5211c0d8736f3c1f20802447d12874b7fdbfced",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/vita3k/vita3k/tags",
       "commit-query": ".[0].commit.sha"
      }
     },
     {
      "type": "patch",
      "paths": [
       "org.vita3k.vita3k.no-tracy-on-relwithdbginfo.patch",
       "org.vita3k.vita3k.use-system-ffmpeg.patch",
       "org.vita3k.vita3k.use-system-fmtlib.patch",
       "org.vita3k.vita3k.use-system-sdl.patch"
      ]
     }
    ]
   }
  ]
 }
}