{
 "app_id": "com.github.tmewett.BrogueCE",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.tmewett.BrogueCE/master/com.github.tmewett.BrogueCE.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:50.049320+00:00",
 "manifest": {
  "app-id": "com.github.tmewett.BrogueCE",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "brogue",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "brogue",
    "buildsystem": "simple",
    "build-options": {
     "//": "A quick fix for: `fatal error: SDL_image.h: No such file or directory` error",
     "cflags": "-isystem /app/include/SDL2"
    },
    "build-commands": [
     "export DATADIR=/app/lib/brogue/",
     "make DATADIR=/app/lib/brogue/ RELEASE=YES",
     "install -Dm755 bin/brogue /app/lib/brogue/brogue",
     "install -Dm755 brogue /app/bin/brogue",
     "cp -r bin/assets /app/lib/brogue/assets",
     "install -Dm644 bin/assets/icon.png /app/share/icons/hicolor/256x256/apps/com.github.tmewett.BrogueCE.png",
     "install -Dm644 brogue.desktop /app/share/applications/com.github.tmewett.BrogueCE.desktop",
     "install -Dm644 com.github.tmewett.BrogueCE.metainfo.xml /app/share/metainfo/com.github.tmewett.BrogueCE.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tmewett/BrogueCE.git",
      "tag": "v1.15.1",
      "commit": "1ba4240b7a928ddf0ffb772717bf1d433cd63804"
     },
     {
      "type": "script",
      "dest-filename": "brogue",
      "commands": [
       "broguedir=/app/lib/brogue",
       "userdir=${XDG_DATA_HOME:-$HOME/.local/share}/Brogue",
       "mkdir -p $userdir",
       "cd $userdir",
       "exec $broguedir/brogue"
      ]
     },
     {
      "type": "file",
      "path": "brogue.desktop"
     },
     {
      "type": "file",
      "path": "com.github.tmewett.BrogueCE.metainfo.xml"
     }
    ]
   }
  ]
 }
}