{
 "app_id": "com.rq3.Reaction",
 "source_url": "https://raw.githubusercontent.com/flathub/com.rq3.Reaction/master/com.rq3.Reaction.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:08:44.491710+00:00",
 "manifest": {
  "app-id": "com.rq3.Reaction",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "Reaction",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--persist=.Reaction"
  ],
  "modules": [
   "shared-modules/SDL/sdl12-compat.json",
   {
    "name": "reaction",
    "buildsystem": "simple",
    "build-commands": [
     "make DEFAULT_BASEDIR=${FLATPAK_DEST}/share/Reaction -j${FLATPAK_BUILDER_N_JOBS}",
     "mkdir -p ${FLATPAK_DEST}/bin/",
     "mkdir -p ${FLATPAK_DEST}/share/Reaction/",
     "make copyfiles COPYBINDIR=${FLATPAK_DEST}/bin/ COPYDIR=${FLATPAK_DEST}/share/Reaction/ NO_STRIP=1",
     "mv ${FLATPAK_DEST}/bin/Reactionded.* ${FLATPAK_DEST}/bin/Reactionded",
     "mv ${FLATPAK_DEST}/bin/Reaction.* ${FLATPAK_DEST}/bin/Reaction",
     "mv ${FLATPAK_DEST}/bin/*.so ${FLATPAK_DEST}/share/Reaction/",
     "install -Dm644 ${FLATPAK_ID}.png -t ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/",
     "install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ReactionQuake3/reaction.git",
      "commit": "d214682124851c5fb4a1f7f254305ccfcec7bffc"
     },
     {
      "type": "patch",
      "path": "patches/resync.patch"
     },
     {
      "type": "patch",
      "path": "patches/freedesktop.patch",
      "use-git": true
     },
     {
      "type": "patch",
      "path": "patches/fix-constexpr-error.patch"
     }
    ]
   },
   {
    "name": "boomstick",
    "buildsystem": "simple",
    "build-commands": [
     "rm -f *.x86_64 *.so",
     "cp -ar Boomstick ${FLATPAK_DEST}/share/Reaction"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.rq3.com/Reaction-1.0-Linux-x86_64.tar.gz",
      "sha256": "6520e81052c30a1433c5b50e0e738ca620d7adb475ac3c1ee526f06fb03cc6d3",
      "mirror-urls": [
       "https://www.yakusha.net/wp-content/uploads/2026/09/Reaction-1.0-Linux-x86_64.tar.gz"
      ]
     }
    ]
   }
  ]
 }
}