{
 "app_id": "net.sourceforge.quakespasm.Quakespasm",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.quakespasm.Quakespasm/master/net.sourceforge.quakespasm.Quakespasm.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-19T12:58:32.062523+00:00",
 "manifest": {
  "app-id": "net.sourceforge.quakespasm.Quakespasm",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "quakespasm.sh",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "*.a",
   "*.la",
   "/lib/pkgconfig"
  ],
  "modules": [
   "shared-modules/libmad/libmad.json",
   {
    "name": "libxmp",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libxmp/libxmp/",
      "tag": "libxmp-4.7.3",
      "commit": "1e0812137e4f9e15cc026c0c75af82d71d3cb5ad",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^libxmp-(.*)$"
      }
     }
    ]
   },
   {
    "name": "quakespasm",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sezero/quakespasm",
      "commit": "cc32abe09ed417ce3be10af300d2dc2f686349ba",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^quakespasm-(.*)$"
      },
      "tag": "quakespasm-0.96.3"
     },
     {
      "type": "script",
      "dest-filename": "quakespasm.sh",
      "commands": [
       "ls $XDG_DATA_HOME/id1/pak0.pak || zenity --error --text \"Please ensure $XDG_DATA_HOME/id1/ exists and contains at least Quake's pak0.pak game data file.\" --ok-label \"Close\" --width=400",
       "/app/bin/quakespasm -basedir $XDG_DATA_HOME \"$@\""
      ]
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "cd Quake && make USE_SDL2=1 USE_CODEC_FLAC=1 USE_CODEC_OPUS=1 USE_CODEC_XMP=1",
     "install -D -m744 -t /app/bin/ Quake/quakespasm",
     "install -D -m755 -t /app/bin/ Quake/quakespasm.pak",
     "install -D -m744 -t /app/bin/ quakespasm.sh",
     "install -D -m755 Misc/QuakeSpasm_512.png /app/share/icons/hicolor/512x512/apps/net.sourceforge.quakespasm.Quakespasm.png",
     "install -D -m755 -t /app/share/metainfo/ Linux/net.sourceforge.quakespasm.Quakespasm.appdata.xml",
     "desktop-file-edit --set-key=Exec --set-value=quakespasm.sh Linux/net.sourceforge.quakespasm.Quakespasm.desktop",
     "install -D -m755 -t /app/share/applications/ Linux/net.sourceforge.quakespasm.Quakespasm.desktop"
    ]
   }
  ]
 }
}