{
 "app_id": "io.github.cxong.cdogs-sdl",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.cxong.cdogs-sdl/master/io.github.cxong.cdogs-sdl.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:10:49.798777+00:00",
 "manifest": {
  "app-id": "io.github.cxong.cdogs-sdl",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "cdogs-sdl",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=network"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "python3-protobuf",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"protobuf\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/39/ca/c47f91d3cab175b01fd8c4f0d80fdf8613be876cc616e66ad281a59c5ddf/protobuf-7.36.1-py3-none-any.whl",
      "sha256": "7d951e46b3f963d6c264c367c437921de9d5aedd9c3f9612b9077736b4e3ad5c"
     }
    ]
   },
   {
    "name": "cdogs-sdl",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DDATA_INSTALL_DIR=/app/",
     "-DCDOGS_DATA_DIR=/app/"
    ],
    "post-install": [
     "install -Dm644 build/linux/cdogs-icon.256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 build/linux/${FLATPAK_ID}.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm644 build/linux/${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cxong/cdogs-sdl.git",
      "commit": "57782a74ae245d868487094d201d0e56e94a9390",
      "tag": "2.4.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed 's| -Werror||' -i CMakeLists.txt"
      ]
     }
    ]
   }
  ]
 }
}