{
 "app_id": "io.github.sameboy.SameBoy",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.sameboy.SameBoy/master/io.github.sameboy.SameBoy.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=home"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:12:06.897691+00:00",
 "manifest": {
  "app-id": "io.github.sameboy.SameBoy",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/llvm16/bin",
   "prepend-ld-library-path": "/usr/lib/sdk/llvm16/lib"
  },
  "command": "sameboy",
  "rename-desktop-file": "sameboy.desktop",
  "rename-icon": "sameboy",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--device=all",
   "--filesystem=home"
  ],
  "modules": [
   {
    "name": "xdg-utils",
    "buildsystem": "autotools",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/v1.2.1/xdg-utils-v1.2.1.tar.gz",
      "sha256": "f6b648c064464c2636884c05746e80428110a576f8daacf46ef2e554dcfdae75"
     }
    ],
    "modules": [
     {
      "name": "links",
      "buildsystem": "autotools",
      "post-install": [
       "ln -s links \"${FLATPAK_DEST}/bin/elinks\""
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "http://links.twibright.com/download/links-2.30.tar.bz2",
        "sha256": "c4631c6b5a11527cdc3cb7872fc23b7f2b25c2b021d596be410dadb40315f166"
       }
      ]
     },
     {
      "name": "xmlto",
      "buildsystem": "autotools",
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://releases.pagure.org/xmlto/xmlto-0.0.29.tar.bz2",
        "sha256": "6000d8e8f0f9040426c4f85d7ad86789bc88d4aeaef585c4d4110adb0b214f21"
       },
       {
        "type": "script",
        "commands": [
         "autoreconf -fiv"
        ],
        "dest-filename": "autogen.sh"
       }
      ]
     }
    ]
   },
   {
    "name": "rgbds",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/gbdev/rgbds.git",
      "tag": "v1.0.1",
      "commit": "92bfe5d930c07dd4672b148f811305aa294d6e6f"
     }
    ]
   },
   {
    "name": "sameboy",
    "buildsystem": "autotools",
    "no-autogen": true,
    "make-args": [
     "DATA_DIR=${FLATPAK_DEST}/share/sameboy/"
    ],
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}",
     "DATA_DIR=${FLATPAK_DEST}/share/sameboy/"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "cflags": "-Wno-unused-command-line-argument"
      }
     }
    },
    "post-install": [
     "install -Dm 644 FreeDesktop/sameboy.desktop ${FLATPAK_DEST}/share/applications/sameboy.desktop",
     "install -Dm 644 io.github.sameboy.SameBoy.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm 644 FreeDesktop/AppIcon/16x16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/sameboy.png",
     "install -Dm 644 FreeDesktop/AppIcon/32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/sameboy.png",
     "install -Dm 644 FreeDesktop/AppIcon/64x64.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/sameboy.png",
     "install -Dm 644 FreeDesktop/AppIcon/128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/sameboy.png",
     "install -Dm 644 FreeDesktop/AppIcon/256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/sameboy.png",
     "install -Dm 644 FreeDesktop/AppIcon/512x512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/sameboy.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LIJI32/SameBoy.git",
      "tag": "v1.0.3",
      "commit": "208ba4afabffab9edde416f2dbb8ae459e34adb8"
     },
     {
      "type": "file",
      "path": "io.github.sameboy.SameBoy.metainfo.xml"
     }
    ]
   }
  ]
 }
}