{
 "app_id": "org.libretro.RetroArch",
 "source_url": "https://raw.githubusercontent.com/flathub/org.libretro.RetroArch/master/org.libretro.RetroArch.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=/run/udev:ro",
  "--filesystem=xdg-run/gamescope-0:ro",
  "--filesystem=host",
  "--filesystem=xdg-run/discord-ipc-0:create",
  "--allow=multiarch",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.PowerManagement.Inhibit",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.freedesktop.login1"
 ],
 "module_count": 18,
 "fetched_at": "2026-09-20T15:34:40.405701+00:00",
 "manifest": {
  "app-id": "org.libretro.RetroArch",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "retroarch",
  "rename-icon": "com.libretro.RetroArch",
  "rename-desktop-file": "com.libretro.RetroArch.desktop",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=all",
   "--filesystem=host",
   "--filesystem=/run/udev:ro",
   "--filesystem=xdg-run/pipewire-0",
   "--allow=multiarch",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.freedesktop.PowerManagement.Inhibit",
   "--talk-name=org.freedesktop.login1",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/discord-ipc-0:create",
   "--filesystem=xdg-run/gamescope-0:ro"
  ],
  "modules": [
   {
    "name": "retroarch",
    "config-opts": [
     "--enable-dbus"
    ],
    "make-args": [
     "GLOBAL_CONFIG_DIR=${FLATPAK_DEST}/etc",
     "HAVE_TRANSLATE=1",
     "HAVE_ACCESSIBILITY=1",
     "HAVE_UPDATE_ASSETS=0",
     "HAVE_UPDATE_CORE_INFO=0"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/RetroArch.git",
      "commit": "69a4f0ea1e8aaf442ae4858f2e7f2b31a1776576"
     },
     {
      "type": "file",
      "path": "org.libretro.RetroArch.metainfo.xml"
     },
     {
      "type": "file",
      "path": "retroarch.cfg"
     }
    ],
    "post-install": [
     "mkdir -p ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/",
     "mv ${FLATPAK_DEST}/share/pixmaps/com.libretro.RetroArch.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/",
     "rmdir ${FLATPAK_DEST}/share/pixmaps/",
     "mkdir -p ${FLATPAK_DEST}/etc",
     "sed s:@prefix@:${FLATPAK_DEST}:g retroarch.cfg > ${FLATPAK_DEST}/etc/retroarch.cfg",
     "mkdir -p ${FLATPAK_DEST}/share/metainfo",
     "cp org.libretro.RetroArch.metainfo.xml ${FLATPAK_DEST}/share/metainfo"
    ],
    "modules": [
     "modules/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013.json",
     "modules/libaio/libaio-0.3.112.json",
     "shared-modules/glu/glu-9.json",
     "modules/libdecor/libdecor.json",
     "modules/pcaudiolib/pcaudiolib-1.3.json",
     "modules/espeak-ng/espeak-ng-1.52.json",
     "modules/gamescope/gamescope-wsi-layer.json"
    ]
   },
   {
    "name": "retroarch-filters-video",
    "subdir": "gfx/video_filters",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/RetroArch.git",
      "commit": "69a4f0ea1e8aaf442ae4858f2e7f2b31a1776576"
     }
    ]
   },
   {
    "name": "retroarch-filters-audio",
    "subdir": "libretro-common/audio/dsp_filters",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/RetroArch.git",
      "commit": "69a4f0ea1e8aaf442ae4858f2e7f2b31a1776576"
     }
    ]
   },
   {
    "name": "retroarch-assets",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/retroarch-assets.git",
      "commit": "73106363e14e34c08a5854b4cfbc29f184e3b783"
     }
    ]
   },
   {
    "name": "libretro-database",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/libretro-database.git",
      "commit": "4de37d2c8042d9d0f608c43006c9b35438c536ce"
     }
    ]
   },
   {
    "name": "libretro-core-info",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/libretro-core-info.git",
      "commit": "b03bfc451381e1a5eb92fda9e56a1e81bfeb92c9"
     }
    ]
   },
   {
    "name": "retroarch-joypad-autoconfig",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/retroarch-joypad-autoconfig.git",
      "commit": "033151045d378b64e712a92592467800d7924227"
     }
    ]
   },
   {
    "name": "common-shaders",
    "only-arches": [
     "x86_64"
    ],
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/common-shaders.git",
      "commit": "86cfa146a8dfddf6377ddb5dbcff552feae2e5bf"
     }
    ]
   },
   {
    "name": "slang-shaders",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/slang-shaders.git",
      "commit": "a2ac00bcd5a44982ecaa6ba6e5b8cc9a9608b1d6"
     }
    ]
   },
   {
    "name": "glsl-shaders",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/glsl-shaders.git",
      "commit": "468f67b6f6788e2719d1dd28dfb2c9b7c3db3cc7"
     }
    ]
   },
   {
    "name": "common-overlays",
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libretro/common-overlays.git",
      "commit": "ea3f2bf187ae814fdd90431cf796dfe1438cf98c"
     }
    ]
   }
  ]
 }
}