{
 "app_id": "io.github.xyproto.zsnes",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.xyproto.zsnes/master/io.github.xyproto.zsnes.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=host",
  "--allow=multiarch"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-19T12:51:37.062130+00:00",
 "manifest": {
  "id": "io.github.xyproto.zsnes",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "zsnes",
  "finish-args": [
   "--share=ipc",
   "--device=all",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--allow=multiarch",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=host:rw"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Compat.i386",
   "org.freedesktop.Sdk.Extension.toolchain-i386"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.Compat.i386": {
    "directory": "lib/i386-linux-gnu",
    "version": "25.08"
   },
   "org.freedesktop.Platform.GL32": {
    "directory": "lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "25.08;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false,
    "add-ld-path": "lib",
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver"
   }
  },
  "build-options": {
   "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
   "ldflags": "-L/app/lib32",
   "prepend-path": "/usr/lib/sdk/toolchain-i386/bin",
   "env": {
    "CC": "i686-unknown-linux-gnu-gcc",
    "CFLAGS": ""
   },
   "libdir": "/app/lib32"
  },
  "modules": [
   {
    "name": "zsnes",
    "buildsystem": "simple",
    "build-commands": [
     "make",
     "mkdir -p /app/lib/i386-linux-gnu",
     "mkdir -p /app/lib/debug/lib/i386-linux-gnu",
     "mkdir -p /app/lib/i386-linux-gnu/GL",
     "install -Dm644 ld.so.conf -t $FLATPAK_DEST/etc",
     "make PREFIX=$FLATPAK_DEST install",
     "install -Dm644 io.github.xyproto.zsnes.metainfo.xml -t $FLATPAK_DEST/share/metainfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xyproto/zsnes/archive/refs/tags/2.2.2.tar.gz",
      "sha256": "1b92bdc37a33e37abc896721f4c5b0ed5df6b90326d6b40b44bfbea2eeb1fd2f"
     },
     {
      "type": "inline",
      "dest-filename": "ld.so.conf",
      "contents": "/app/lib32\n/app/lib/i386-linux-gnu\n"
     },
     {
      "type": "file",
      "path": "io.github.xyproto.zsnes.metainfo.xml"
     }
    ]
   }
  ]
 }
}