{
 "app_id": "io.github.RobertBeckebans.RBDoom3BFG-GL",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.RobertBeckebans.RBDoom3BFG-GL/master/io.github.RobertBeckebans.RBDoom3BFG-GL.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:10:29.195858+00:00",
 "manifest": {
  "app-id": "io.github.RobertBeckebans.RBDoom3BFG-GL",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "rbdoom3bfg.sh",
  "finish-args": [
   "--device=all",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network"
  ],
  "cleanup": [
   "/include",
   "*.a",
   "*.la",
   "/lib*/pkgconfig",
   "/lib*/debug",
   "/share/man",
   "/share/cmake"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "rbdoom3bfg-build",
    "buildsystem": "cmake",
    "builddir": true,
    "subdir": "neo",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DSDL2=ON",
     "-DFFMPEG=OFF",
     "-DBINKDEC=ON",
     "-DUSE_SYSTEM_LIBGLEW=ON",
     "-DOpenGL_GL_PREFERENCE=GLVND"
    ],
    "build-options": {
     "env": {
      "CXXFLAGS": "-Wno-error=nonnull"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/RobertBeckebans/RBDOOM-3-BFG",
      "tag": "v1.4.0"
     },
     {
      "type": "file",
      "path": "RBDoom3BFG.metainfo.xml"
     },
     {
      "type": "file",
      "path": "RBDoom3BFG.desktop"
     },
     {
      "type": "file",
      "path": "RBDoom3BFG.128x128.png"
     },
     {
      "type": "file",
      "path": "rbdoom3bfg.sh"
     }
    ],
    "post-install": [
     "install -Dm 755 RBDoom3BFG /app/bin/RBDoom3BFG",
     "mkdir -p /app/share/rbdoom3bfg/base",
     "cp --recursive ../../base/* --target-directory /app/share/rbdoom3bfg/base",
     "install -Dm 644 ../../RBDoom3BFG.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm 644 ../../RBDoom3BFG.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 ../../RBDoom3BFG.128x128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm 755 ../../rbdoom3bfg.sh -t /app/bin"
    ]
   }
  ]
 }
}