{
 "app_id": "ro.go.hmlendea.SokoGrump",
 "source_url": "https://raw.githubusercontent.com/flathub/ro.go.hmlendea.SokoGrump/master/ro.go.hmlendea.SokoGrump.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:17:20.151643+00:00",
 "manifest": {
  "app-id": "ro.go.hmlendea.SokoGrump",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "separate-locales": false,
  "command": "sokogrump",
  "finish-args": [
   "--share=ipc",
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11"
  ],
  "modules": [
   {
    "name": "sokogrump",
    "buildsystem": "simple",
    "build-commands": [
     "unzip -d sokogrump/ sokogrump.zip",
     "cp -r sokogrump/ /app",
     "rm -f /app/sokogrump/libSDL2-2.0.so.0",
     "install -Dm 644 ro.go.hmlendea.SokoGrump.png -t ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/",
     "install -Dm 644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm 644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm 755 sokogrump.sh /app/bin/sokogrump",
     "desktop-file-edit ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop --set-key \"Exec\" --set-value \"sokogrump\" --set-icon=${FLATPAK_ID}"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/hmlendea/sokogrump/releases/download/v2.8.3/sokogrump_2.8.3_linux-arm64.zip",
      "dest-filename": "sokogrump.zip",
      "sha256": "29c539f45d4c04319ab9851f80f2ae21a8861abbc3af824c890e5789760a86e2",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/hmlendea/sokogrump/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"sokogrump_\" + $version + \"_linux-arm64.zip\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/hmlendea/sokogrump/releases/download/v2.8.3/sokogrump_2.8.3_linux-x64.zip",
      "dest-filename": "sokogrump.zip",
      "sha256": "663cfb4e950397cc90a66b3a994a68dc865607ab4981e928008ceee5ca145eb8",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/hmlendea/sokogrump/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"sokogrump_\" + $version + \"_linux-x64.zip\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "ro.go.hmlendea.SokoGrump.metainfo.xml"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/hmlendea/sokogrump/refs/heads/master/icon.png",
      "dest-filename": "ro.go.hmlendea.SokoGrump.png",
      "sha256": "d8ce7f6ab52a1fa65284cb200b6f0186fd29da5f4cb48bec2d82572062a71ba3"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/hmlendea/sokogrump/refs/heads/master/SokoGrump.desktop",
      "dest-filename": "ro.go.hmlendea.SokoGrump.desktop",
      "sha256": "4152b79191427c0f81fc2757bf669cd50275587d30bfed87c5961cede4c80a88"
     },
     {
      "type": "script",
      "dest-filename": "sokogrump.sh",
      "commands": [
       "export TMPDIR=\"${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}\"",
       "cd /app/sokogrump",
       "exec /app/sokogrump/SokoGrump \"$@\""
      ]
     }
    ]
   }
  ]
 }
}