{
 "app_id": "io.gitlab.stone_kingdoms.StoneKingdoms",
 "source_url": "https://raw.githubusercontent.com/flathub/io.gitlab.stone_kingdoms.StoneKingdoms/master/io.gitlab.stone_kingdoms.StoneKingdoms.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:12:45.977693+00:00",
 "manifest": {
  "id": "io.gitlab.stone_kingdoms.StoneKingdoms",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "stone-kingdoms",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--share=ipc",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/luajit/luajit.json",
   {
    "name": "libmodplug",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/modplug-xmms/files/libmodplug/0.8.9.0/libmodplug-0.8.9.0.tar.gz",
      "sha256": "457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de"
     }
    ]
   },
   {
    "name": "love",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/love2d/love/releases/download/11.5/love-11.5-linux-src.tar.gz",
      "sha256": "066e0843f71aa9fd28b8eaf27d41abb74bfaef7556153ac2e3cf08eafc874c39"
     }
    ]
   },
   {
    "name": "stone-kingdoms",
    "buildsystem": "simple",
    "build-commands": [
     "cp -r game /app/game",
     "install -Dm755 stone-kingdoms /app/bin/stone-kingdoms",
     "install -Dm644 game/appstream/${FLATPAK_ID}.desktop -t /app/share/applications/",
     "install -Dm644 game/appstream/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 game/assets/other/icon.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 game/LICENSE -t $FLATPAK_DEST/share/licenses/$FLATPAK_ID/stone-kingdoms/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/stone-kingdoms/stone-kingdoms/-/archive/0.6.1/stone-kingdoms-0.6.1.tar.gz",
      "sha256": "d61dc679d8d69153d178f42b312752b64ca4a05f76ffc086340ef705ca99ecd3",
      "dest": "game"
     },
     {
      "type": "patch",
      "path": "./metainfo-launchable.patch",
      "dest": "game"
     },
     {
      "type": "script",
      "commands": [
       "love /app/game"
      ],
      "dest-filename": "stone-kingdoms"
     }
    ]
   }
  ]
 }
}