{
 "app_id": "com.abagames.rRootage",
 "source_url": "https://raw.githubusercontent.com/flathub/com.abagames.rRootage/master/com.abagames.rRootage.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:06:47.361806+00:00",
 "manifest": {
  "app-id": "com.abagames.rRootage",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "run-rrootage.sh",
  "rename-desktop-file": "rrootage.desktop",
  "rename-icon": "rrootage",
  "rename-appdata-file": "rrootage.appdata.xml",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=x11"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   "shared-modules/SDL/SDL-1.2.15.json",
   "shared-modules/SDL/SDL_mixer-1.2.12.json",
   {
    "name": "bulletml",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "http://http.debian.net/debian/pool/main/b/bulletml/bulletml_0.0.6.orig.tar.gz",
      "sha256": "162544e708cd8f61c944f7eac2a0403d2900d29fa9b1dc45235cfccfac8ae960"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/fixes.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/bulletml_d.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/d_cpp.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/warnings.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/makefile.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/includes.patch"
     },
     {
      "type": "patch",
      "path": "patches/bulletml/get-rid-of-boost.patch"
     }
    ],
    "build-commands": [
     "rm -f src/calc.cpp",
     "rm -f src/*.o src/*/*.o",
     "make -C src CXXFLAGS=\"$(CXXFLAGS) $(CPPFLAGS)\" libbulletml.a",
     "rm -f src/*.o src/*/*.o",
     "make -C src CXXFLAGS=\"$(CXXFLAGS) $(CPPFLAGS) -fPIC -fpic\" LDFLAGS=\"$(LDFLAGS) -Wl,-z,defs\" libbulletml.so",
     "mkdir -p /app/include/d/ /app/include/bulletml/ /app/include/bulletml/tinyxml/ /app/lib",
     "cp src/bulletml.d /app/include/d/",
     "cp src/*.h /app/include/bulletml/",
     "cp src/tinyxml/*.h /app/include/bulletml/tinyxml/",
     "cp src/lib*.a /app/lib/",
     "cp -a src/lib*.so* /app/lib/"
    ],
    "cleanup": [
     "/app/include",
     "*.a"
    ]
   },
   {
    "name": "rrootage",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://master.dl.sourceforge.net/project/rrootage/rRootage%20binary_source/rRootage%200.23a/rRootage-0.23a.tar.gz",
      "sha256": "964edbe21802e3e40d6a8da19b61132decacd13bf9a71bac86abce012379ff07"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/01_makefile.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/02_data_dir.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/03_texture_filename.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/04_home.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/05_gcc.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/06_rrootage_highres.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/07_use_system_bulletml.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/08_windowed_mode.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/09_rootage_make_highres_default.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/10_deg_out_of_range.patch"
     },
     {
      "type": "patch",
      "path": "patches/rrootage/11-Do-not-hardcode-the-assets-location.patch"
     },
     {
      "type": "file",
      "path": "rrootage.desktop"
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm644 rrootage.desktop /app/share/applications/rrootage.desktop"
      ]
     },
     {
      "type": "file",
      "path": "rrootage.png"
     },
     {
      "type": "file",
      "path": "rrootage-128.png"
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm644 rrootage.png /app/share/icons/hicolor/64x64/apps/rrootage.png",
       "install -Dm644 rrootage-128.png /app/share/icons/hicolor/128x128/apps/rrootage.png"
      ]
     },
     {
      "type": "file",
      "path": "rrootage.appdata.xml"
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm644 rrootage.appdata.xml /app/share/appdata/rrootage.appdata.xml"
      ]
     },
     {
      "type": "script",
      "dest-filename": "run-rrootage.sh",
      "commands": [
       "HOME=$XDG_CONFIG_HOME /app/bin/rrootage"
      ]
     }
    ],
    "build-commands": [
     "CC=clang;make -C src -f makefile.lin MORE_CFLAGS=\"-DLINUX -std=gnu17 -Wall -g\"",
     "install src/rrootage /app/bin/rrootage",
     "install -m 555 run-rrootage.sh /app/bin/run-rrootage.sh",
     "install -d /app/share/games/rRootage",
     "cp -R rr_share/* /app/share/games/rRootage"
    ]
   }
  ]
 }
}