{
 "app_id": "net.pcsx2.PCSX2",
 "source_url": "https://raw.githubusercontent.com/flathub/net.pcsx2.PCSX2/master/net.pcsx2.PCSX2.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.5",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-run/gamescope-0:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.ScreenSaver"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:13:36.898754+00:00",
 "manifest": {
  "app-id": "net.pcsx2.PCSX2",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "6.5",
  "command": "pcsx2-qt",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm16"
  ],
  "finish-args": [
   "--device=all",
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=host:ro",
   "--talk-name=org.freedesktop.ScreenSaver"
  ],
  "modules": [
   {
    "name": "libaio",
    "no-autogen": true,
    "make-install-args": [
     "prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://pagure.io/libaio.git",
      "tag": "libaio-0.3.113",
      "commit": "1b18bfafc6a2f7b9fa2c6be77a95afed8b7be448",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^libaio-([\\d.]+)$"
      }
     }
    ],
    "cleanup": [
     "/include",
     "/lib/*.a"
    ]
   },
   {
    "name": "soundtouch",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://codeberg.org/soundtouch/soundtouch.git",
      "tag": "2.3.2",
      "commit": "29fba832a7920a04eab956b3990c50e13d8c93f9",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig",
     "/share/doc",
     "/lib/*.a"
    ]
   },
   {
    "name": "png++",
    "disabled": true,
    "buildsystem": "autotools",
    "make-install-args": [
     "prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.savannah.nongnu.org/releases/pngpp/png++-0.2.10.tar.gz",
      "sha256": "998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1"
     }
    ]
   },
   {
    "name": "libpcap",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/the-tcpdump-group/libpcap.git",
      "tag": "libpcap-1.10.4",
      "commit": "104271ba4a14de6743e43bcf87536786d8fddea4",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^libpcap-([\\d.]+)$"
      }
     }
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/share/man",
     "/lib/pkgconfig",
     "/lib/*.a"
    ]
   },
   {
    "name": "pcsx2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DQT_BUILD=ON",
     "-DCUBEB_API=ON",
     "-DX11_API=ON",
     "-DWAYLAND_API=ON",
     "-DENABLE_SETCAP=OFF",
     "-DUSE_SYSTEM_SDL2=ON",
     "-DUSE_SYSTEM_ZSTD=OFF",
     "-DDISABLE_ADVANCE_SIMD=TRUE",
     "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
     "-DCMAKE_C_COMPILER=/usr/lib/sdk/llvm16/bin/clang",
     "-DCMAKE_CXX_COMPILER=/usr/lib/sdk/llvm16/bin/clang++",
     "-DCMAKE_EXE_LINKER_FLAGS_INIT=-fuse-ld=/usr/lib/sdk/llvm16/bin/ld.lld",
     "-DCMAKE_MODULE_LINKER_FLAGS_INIT=-fuse-ld=/usr/lib/sdk/llvm16/bin/ld.lld",
     "-DCMAKE_SHARED_LINKER_FLAGS_INIT=-fuse-ld=/usr/lib/sdk/llvm16/bin/ld.lld"
    ],
    "cleanup": [
     "/share/pixmaps",
     "/share/man",
     "/share/doc"
    ],
    "post-install": [
     "cp -r bin/pcsx2-qt ../bin/* ${FLATPAK_DEST}/bin",
     "rm ${FLATPAK_DEST}/bin/portable.ini",
     "install -Dm644 ../bin/resources/icons/AppIconLarge.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/net.pcsx2.PCSX2.png",
     "install -Dm644 ../net.pcsx2.PCSX2.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.pcsx2.PCSX2.metainfo.xml",
     "install -Dm644 ../.github/workflows/scripts/linux/pcsx2-qt.desktop ${FLATPAK_DEST}/share/applications/net.pcsx2.PCSX2.desktop",
     "desktop-file-edit --set-key=Icon --set-value=net.pcsx2.PCSX2 ${FLATPAK_DEST}/share/applications/net.pcsx2.PCSX2.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PCSX2/pcsx2.git",
      "tag": "v1.7.4666",
      "commit": "d38ad1df94a073f2891992cd47b80ed3418fc3bc",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "path": "net.pcsx2.PCSX2.metainfo.xml"
     }
    ]
   },
   {
    "name": "pcsx2_patches",
    "buildsystem": "simple",
    "build-commands": [
     "cd patches/ && zip -r ../patches.zip *",
     "install -Dm644 patches.zip ${FLATPAK_DEST}/bin/resources/patches.zip"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PCSX2/pcsx2_patches.git",
      "tag": "latest",
      "commit": "74e2185f000c20ffcb548bad12b7514ac759a327",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "(latest)"
      }
     }
    ]
   }
  ]
 }
}