{
 "app_id": "org.libsdl.Maelstrom",
 "source_url": "https://raw.githubusercontent.com/flathub/org.libsdl.Maelstrom/master/org.libsdl.Maelstrom.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:15:59.436494+00:00",
 "manifest": {
  "app-id": "org.libsdl.Maelstrom",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "Maelstrom",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio"
  ],
  "modules": [
   {
    "name": "Maelstrom",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DSTEAM=OFF",
     "-DSTANDALONE_INSTALL=FALSE",
     "-DCMAKE_INSTALL_BINDIR=${FLATPAK_DEST}/bin/",
     "-DCMAKE_INSTALL_LIBDIR=${FLATPAK_DEST}/lib/",
     "-DCMAKE_INSTALL_DOCDIR=${FLATPAK_DEST}/share/docs/Maelstrom/",
     "-DGAME_INSTALL_DATADIR=${FLATPAK_DEST}/share/Maelstrom/",
     "-DUSE_VENDORED_SDL=false"
    ],
    "post-install": [
     "install -Dm644 org.libsdl.Maelstrom.png -t ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/",
     "install -Dm644 org.libsdl.Maelstrom.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm644 org.libsdl.Maelstrom.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "cleanup": [
     "/share/docs",
     "/share/Maelstrom/Data/Steam"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libsdl-org/Maelstrom/releases/download/release-4.0.2/Maelstrom-4.0.2.tar.gz",
      "sha256": "ec12ab3d5ffb53db3d2246766cbc227b8ad681e879c330ef5beb451328d18cea",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 9974,
       "stable-only": true,
       "url-template": "https://github.com/libsdl-org/Maelstrom/releases/download/release-$version/Maelstrom-$version.tar.gz"
      }
     },
     {
      "type": "file",
      "path": "org.libsdl.Maelstrom.desktop"
     },
     {
      "type": "file",
      "path": "org.libsdl.Maelstrom.png"
     },
     {
      "type": "file",
      "path": "org.libsdl.Maelstrom.appdata.xml"
     }
    ]
   }
  ]
 }
}