{
 "app_id": "me.njean.shootingpactris",
 "source_url": "https://raw.githubusercontent.com/flathub/me.njean.shootingpactris/master/me.njean.shootingpactris.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:13:11.862285+00:00",
 "manifest": {
  "app-id": "me.njean.shootingpactris",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "shpactris",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--device=all",
   "--socket=pulseaudio"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "scons",
    "buildsystem": "simple",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "7801f3f62f654528e272df780be10c0e9337e897650b62ddcee9f39fde13f8fb",
      "url": "https://downloads.sourceforge.net/project/scons/scons/3.1.2/scons-3.1.2.tar.gz"
     }
    ],
    "build-commands": [
     "python3 -m pip install --prefix=/app . --no-build-isolation"
    ]
   },
   {
    "name": "godot",
    "buildsystem": "simple",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/godotengine/godot/releases/download/3.2.1-stable/godot-3.2.1-stable.tar.xz",
      "sha256": "556b564079fb1b21a05320c359268b2032c87d8b3bfaa4fd104ebf9c909ab87d"
     },
     {
      "type": "patch",
      "path": "godot-build.patch"
     }
    ],
    "build-commands": [
     "python3 /app/bin/scons -j$FLATPAK_BUILDER_N_JOBS platform=server tools=yes target=release_debug",
     "install -Dm755 bin/godot_server.x11.opt.tools.* /app/bin/godot-server"
    ]
   },
   {
    "name": "godot-templates",
    "buildsystem": "simple",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "c6883b2dd8848b4ea90d869b971a98364296482d2223ae20e61cb492fe082abb",
      "url": "https://github.com/godotengine/godot/releases/download/3.2.1-stable/Godot_v3.2.1-stable_export_templates.tpz",
      "dest-filename": "templates.zip"
     }
    ],
    "build-commands": [
     "install -Dm755 -t /app/share/godot/templates/3.2.1.stable/ linux_x11_*"
    ]
   },
   {
    "name": "shpactris",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://framagit.org/nicooo/shpactris.git",
      "tag": "v1.2",
      "commit": "6821659cec2e87b5b93bdbb600a3b1cb07163332"
     },
     {
      "type": "file",
      "path": "me.njean.shootingpactris.desktop"
     },
     {
      "type": "file",
      "path": "me.njean.shootingpactris.metainfo.xml"
     },
     {
      "type": "file",
      "path": "icon-128x128.png"
     }
    ],
    "build-options": {
     "env": {
      "XDG_DATA_HOME": "/app/share/"
     }
    },
    "build-commands": [
     "/app/bin/godot-server --export 'Linux/X11' shpactris || true",
     "install -Dm755 shpactris /app/bin/shpactris",
     "install -Dm644 icon.png /app/share/icons/hicolor/64x64/apps/me.njean.shootingpactris.png",
     "install -Dm644 icon-128x128.png /app/share/icons/hicolor/128x128/apps/me.njean.shootingpactris.png",
     "install -Dm644 me.njean.shootingpactris.desktop /app/share/applications/me.njean.shootingpactris.desktop",
     "install -Dm644 me.njean.shootingpactris.metainfo.xml /app/share/metainfo/me.njean.shootingpactris.metainfo.xml"
    ]
   }
  ]
 }
}