{
 "app_id": "onion.torzu_emu.torzu",
 "source_url": "https://gitlab.com/apicalshark/onion.torzu_emu.torzu/-/raw/master/onion.torzu_emu.torzu.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--device=all",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--share=network",
  "--share=ipc",
  "--filesystem=xdg-run/app/com.discordapp.Discord:ro",
  "--filesystem=home:ro",
  "--filesystem=/run/media:ro",
  "--filesystem=xdg-run/pipewire-0",
  "--talk-name=org.freedesktop.login1.Manager",
  "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T18:19:56.526640+00:00",
 "manifest": {
  "app-id": "onion.torzu_emu.torzu",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "5.15-24.08",
  "command": "yuzu-launcher",
  "finish-args": [
   "--device=all",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--share=ipc",
   "--filesystem=xdg-run/app/com.discordapp.Discord:ro",
   "--filesystem=home:ro",
   "--filesystem=/run/media:ro",
   "--filesystem=xdg-run/pipewire-0",
   "--talk-name=org.freedesktop.login1.Manager",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
  ],
  "cleanup": [
   "/include",
   "/bin/glslang",
   "/bin/glslangValidator",
   "/bin/zip*",
   "/bin/zstd*",
   "/bin/spirv-*",
   "/bin/sdl2-config",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/doc",
   "/share/man",
   "/src",
   "*.a",
   "*.la"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   "shared-modules/libusb/libusb.json",
   {
    "name": "libzip",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/nih-at/libzip/archive/v1.11.4.tar.gz",
      "sha256": "4844595615e2436e3cf1ed46a1b260fbdaf8b8fa8f2b594e8b5d8162c696b8b2",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10649,
       "url-template": "https://github.com/nih-at/libzip/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "zstd",
    "buildsystem": "meson",
    "subdir": "build/meson",
    "config-opts": [
     "-Dbin_programs=false",
     "-Dbin_contrib=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz",
      "sha256": "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12083,
       "stable-only": true,
       "url-template": "https://github.com/facebook/zstd/releases/download/v$version/zstd-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "fmt",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-DFMT_TEST=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fmtlib/fmt/releases/download/11.2.0/fmt-11.2.0.zip",
      "sha256": "203eb4e8aa0d746c62d8f903df58e0419e3751591bb53ff971096eaa0ebd4ec3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 11526,
       "versions": {
        "<": "12.0.0"
       },
       "url-template": "https://github.com/fmtlib/fmt/releases/download/$version/fmt-$version.zip"
      }
     }
    ]
   },
   {
    "name": "glslang",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KhronosGroup/glslang/archive/15.4.0.tar.gz",
      "sha256": "b16c78e7604b9be9f546ee35ad8b6db6f39bbbbfb19e8d038b6fe2ea5bba4ff4",
      "x-checker-data": {
       "type": "anitya",
       "stable-only": true,
       "project-id": 205796,
       "url-template": "https://github.com/KhronosGroup/glslang/archive/$version.tar.gz"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-1.4.313.0.tar.gz",
      "sha256": "6b60f723345ceed5291cceebbcfacf7fea9361a69332261fa08ae57e2a562005",
      "dest": "External/spirv-tools",
      "x-checker-data": {
       "type": "anitya",
       "stable-only": true,
       "project-id": 334920,
       "url-template": "https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-$version.tar.gz"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-1.4.313.0.tar.gz",
      "sha256": "f68be549d74afb61600a1e3a7d1da1e6b7437758c8e77d664909f88f302c5ac1",
      "dest": "External/spirv-tools/external/spirv-headers",
      "x-checker-data": {
       "type": "anitya",
       "stable-only": true,
       "project-id": 334920,
       "url-template": "https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "catch2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCATCH_INSTALL_EXTRAS=ON",
     "-DCATCH_BUILD_TESTING=OFF"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/catchorg/Catch2/archive/v3.8.1.tar.gz",
      "sha256": "18b3f70ac80fccc340d8c6ff0f339b2ae64944782f8d2fca2bd705cf47cadb79",
      "x-checker-data": {
       "type": "anitya",
       "stable-only": true,
       "versions": {
        "<": "4.0.0"
       },
       "project-id": 7680,
       "url-template": "https://github.com/catchorg/Catch2/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "nlohmann-json",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-DJSON_BuildTests=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/nlohmann/json/archive/v3.12.0.tar.gz",
      "sha256": "4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 11152,
       "url-template": "https://github.com/nlohmann/json/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --with-libraries=headers,context,system,fiber,atomic,filesystem",
     "./b2 -j $FLATPAK_BUILDER_N_JOBS install --prefix=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.bz2",
      "sha256": "46d9d2c06637b219270877c9e16155cbd015b6dc84349af064c088e9b5b12f7b"
     }
    ]
   },
   {
    "name": "nv-codec-headers",
    "make-install-args": [
     "PREFIX=/app"
    ],
    "no-autogen": true,
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git",
      "tag": "n13.0.19.0",
      "commit": "e844e5b26f46bb77479f063029595293aa8f812d",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^n([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-sd-bus-provider=no-daemon",
     "-Dwith-examples=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FeralInteractive/gamemode/releases/download/1.8.2/gamemode-1.8.2.tar.xz",
      "sha256": "98cd1bcf6101c92fe87f974c7776af23c7e18f29ce6ecfe572b1c39dcde5c181",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 17418,
       "stable-only": true,
       "url-template": "https://github.com/FeralInteractive/gamemode/releases/download/$version/gamemode-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "yuzu",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-DENABLE_QT_TRANSLATION=ON",
     "-DYUZU_USE_QT_WEB_ENGINE=ON",
     "-DBUILD_REPOSITORY=torzu-emu/torzu",
     "-DYUZU_USE_QT_MULTIMEDIA=ON",
     "-DYUZU_TESTS=OFF",
     "-DYUZU_ENABLE_LTO=ON",
     "-DENABLE_QT6=OFF"
    ],
    "build-options": {
     "env": {
      "TITLEBARFORMATIDLE": "torzu {}",
      "TITLEBARFORMATRUNNING": "torzu {} | {}"
     },
     "arch": {
      "aarch64": {
       "config-opts": [
        "-DENABLE_OPENGL=OFF"
       ]
      },
      "x86_64": {
       "config-opts": [
        "-DCMAKE_C_FLAGS=$CFLAGS -march=x86-64-v3 -O3",
        "-DCMAKE_CXX_FLAGS=$CXXFLAGS -march=x86-64-v3 -O3"
       ]
      }
     },
     "strip": true,
     "no-debuginfo": true
    },
    "cleanup": [
     "/share/man",
     "/share/pixmaps"
    ],
    "post-install": [
     "rm -rf /app/share/appdata"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://notabug.org/litucks/torzu.git",
      "disable-shallow-clone": true,
      "branch": "master"
     }
    ]
   }
  ]
 }
}