{
 "app_id": "org.opensurge2d.OpenSurge",
 "source_url": "https://raw.githubusercontent.com/flathub/org.opensurge2d.OpenSurge/master/org.opensurge2d.OpenSurge.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--device=all",
  "--filesystem=xdg-download:ro"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:16:16.067825+00:00",
 "manifest": {
  "app-id": "org.opensurge2d.OpenSurge",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "opensurge",
  "rename-icon": "opensurge",
  "rename-desktop-file": "opensurge.desktop",
  "rename-appdata-file": "opensurge.appdata.xml",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=xdg-download:ro",
   "--device=all",
   "--env=LD_LIBRARY_PATH=/app/lib:/app/lib64"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "*.a",
   "*.la"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   "shared-modules/physfs/physfs.json",
   {
    "name": "liballegro5",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/liballeg/allegro5/releases/download/5.2.11.3/allegro-5.2.11.3.tar.gz",
      "sha256": "aba4679a5b1f2bf62482eba6e8814a94de7ffc86de5f8587ba199fcc61b4a04f"
     }
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWANT_DEMO=OFF",
     "-DWANT_DOCS=OFF",
     "-DWANT_EXAMPLES=OFF",
     "-DWANT_TESTS=OFF",
     "-DWANT_MP3=OFF",
     "-DWANT_DUMB=OFF",
     "-DWANT_FLAC=OFF",
     "-DWANT_VIDEO=OFF"
    ]
   },
   {
    "name": "surgescript",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/alemart/surgescript.git",
      "tag": "v0.6.1",
      "commit": "56bd599302bbca1eea91d0dc8353257845b314ea"
     }
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DWANT_EXECUTABLE=OFF",
     "-DWANT_STATIC=OFF"
    ]
   },
   {
    "name": "opensurge",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/alemart/opensurge.git",
      "tag": "v0.6.1.3",
      "commit": "ce93744be4024ae8b3f92f2e032f442821daa706"
     }
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DGAME_BUILD_VERSION=flatpak",
     "-DALLEGRO_MONOLITH=OFF",
     "-DCMAKE_LIBRARY_PATH=/app/lib",
     "-DCMAKE_INCLUDE_PATH=/app/include",
     "-DCMAKE_INSTALL_PREFIX=/app/bin",
     "-DGAME_BINDIR=/app/bin",
     "-DGAME_DATADIR=/app/share/opensurge",
     "-DDESKTOP_ENTRY_PATH=/app/share/applications",
     "-DDESKTOP_ICON_PATH=/app/share/icons/hicolor/256x256/apps",
     "-DDESKTOP_METAINFO_PATH=/app/share/metainfo"
    ]
   }
  ]
 }
}