{
 "app_id": "com.chez.GrafX2",
 "source_url": "https://raw.githubusercontent.com/flathub/com.chez.GrafX2/master/com.chez.GrafX2.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:07.898799+00:00",
 "manifest": {
  "app-id": "com.chez.GrafX2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "grafx2-sdl2",
  "rename-desktop-file": "grafx2.desktop",
  "rename-appdata-file": "grafx2.appdata.xml",
  "rename-icon": "grafx2",
  "finish-args": [
   "--socket=wayland",
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home"
  ],
  "cleanup": [
   "/share/icons/hicolor/scalable/apps/*.xpm"
  ],
  "modules": [
   "shared-modules/lua5.3/lua-5.3.5.json",
   {
    "name": "grafx2",
    "no-autogen": true,
    "subdir": "src",
    "make-args": [
     "API=sdl2"
    ],
    "make-install-args": [
     "PREFIX=/app",
     "API=sdl2"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/GrafX2/grafX2",
      "tag": "v2.8",
      "commit": "3fa8c98c17b01246c3d39acbeedf4b3db4de6654",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 14560,
       "tag-template": "v$version",
       "is-main-source": true
      }
     },
     {
      "type": "patch",
      "path": "fix-appdata.patch"
     },
     {
      "type": "file",
      "url": "https://github.com/redcode/6502/releases/download/v0.1/6502-v0.1.tar.xz",
      "sha256": "bba50f327163d40b1014f5affc8042137f37b200dae50a4f0fe56b5769b3940f",
      "dest": "3rdparty/archives",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 153534,
       "url-template": "https://github.com/redcode/6502/releases/download/v$version/6502-v$version.tar.xz"
      }
     },
     {
      "type": "file",
      "url": "https://libsdl.org/release/SDL2-2.28.5.tar.gz",
      "sha256": "332cb37d0be20cb9541739c61f79bae5a477427d79ae85e352089afdaf6666e4",
      "dest": "3rdparty/archives",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4779,
       "url-template": "https://libsdl.org/release/SDL2-$version.tar.gz"
      }
     },
     {
      "type": "file",
      "url": "https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz",
      "sha256": "0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699",
      "dest": "3rdparty/archives",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7985,
       "url-template": "https://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz"
      }
     },
     {
      "type": "file",
      "url": "https://sourceforge.net/projects/recoil/files/recoil/5.1.1/recoil-5.1.1.tar.gz",
      "sha256": "13ad32d669c73393114da2cc2d1c1af4880fbebcfcc807ca96fc20b181d50db5",
      "dest": "3rdparty/archives"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|wget|true|g' 3rdparty/Makefile",
       "sed -i 's|curl|true|g' 3rdparty/Makefile",
       "desktop-file-edit --set-key Exec --set-value 'grafx2-sdl2 %f' misc/unix/grafx2.desktop"
      ]
     }
    ]
   }
  ]
 }
}