{
 "app_id": "org.solarus_games.solarus",
 "source_url": "https://gitlab.com/Kapouett/solarus-flatpak/-/raw/master/org.solarus_games.solarus.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-21.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--share=ipc",
  "--device=all",
  "--filesystem=home"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-18T08:09:03.582330+00:00",
 "manifest": {
  "app-id": "org.solarus_games.solarus",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-21.08",
  "sdk": "org.kde.Sdk",
  "command": "solarus-run",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--share=ipc",
   "--device=all",
   "--filesystem=home"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "*.la"
  ],
  "modules": [
   {
    "name": "libmodplug",
    "rm-configure": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://deb.debian.org/debian/pool/main/libm/libmodplug/libmodplug_0.8.9.0.orig.tar.gz",
      "sha256": "457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de"
     },
     {
      "type": "script",
      "commands": [
       "autoreconf -fiv"
      ],
      "dest-filename": "autogen.sh"
     }
    ]
   },
   {
    "name": "libphysfs",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://icculus.org/physfs/downloads/physfs-3.0.2.tar.bz2",
      "sha256": "304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863"
     }
    ],
    "cleanup": [
     "/bin"
    ]
   },
   {
    "name": "libluajit",
    "buildsystem": "simple",
    "build-commands": [
     "make PREFIX=\"${FLATPAK_DEST}\" -j${FLATPAK_BUILDER_N_JOBS}",
     "make install PREFIX=\"${FLATPAK_DEST}\""
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://luajit.org/download/LuaJIT-2.0.5.tar.gz",
      "md5": "48353202cbcacab84ee41a5a70ea0a2c",
      "sha256": "874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979"
     }
    ],
    "cleanup": [
     "/bin",
     "/share/man",
     "*.a"
    ]
   },
   {
    "name": "libglm",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DGLM_TEST_ENABLE=off"
    ],
    "no-make-install": true,
    "post-install": [
     "cp -a glm \"${FLATPAK_DEST}/include/\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/g-truc/glm.git",
      "tag": "0.9.9.8",
      "commit": "bf71a834948186f4097caa076cd2663c69a10e1e"
     }
    ]
   },
   {
    "name": "solarus",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/solarus-games/solarus.git",
      "tag": "v1.6.5",
      "commit": "3aec70b0556a8d7aed7903d1a3e4d9a18c5d1649"
     }
    ],
    "cleanup": [
     "/lib/*-linux-gnu"
    ]
   },
   {
    "name": "solarus-quest-editor",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/solarus-games/solarus-quest-editor.git",
      "tag": "v1.6.5",
      "commit": "c8d0835c3a62a0e60cdb32d26be8b75485a23a96"
     }
    ],
    "post-install": [
     "mv ${FLATPAK_DEST}/share/applications/solarus-quest-editor.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.quest-editor.desktop",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/solarus-quest-editor-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}.quest-editor-symbolic.svg",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/solarus-quest-editor.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.quest-editor.svg",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.quest-editor.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/40x40/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/40x40/apps/${FLATPAK_ID}.quest-editor.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.quest-editor.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/${FLATPAK_ID}.quest-editor.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/20x20/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/20x20/apps/${FLATPAK_ID}.quest-editor.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/solarus-quest-editor.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.quest-editor.png",
     "sed -i -r \"s#Icon=solarus-quest-editor#Icon=${FLATPAK_ID//#/\\#}.quest-editor#g\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.quest-editor.desktop"
    ]
   }
  ]
 }
}