{
 "app_id": "org.openmw.OpenMW",
 "source_url": "https://raw.githubusercontent.com/flathub/org.openmw.OpenMW/master/org.openmw.OpenMW.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:16:16.067822+00:00",
 "manifest": {
  "app-id": "org.openmw.OpenMW",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "openmw-launcher",
  "rename-appdata-file": "openmw.appdata.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=all",
   "--filesystem=host",
   "--socket=pulseaudio"
  ],
  "build-options": {
   "cflags": "-O2 -g",
   "cxxflags": "-O2 -g"
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/pkgconfig",
   "/share/aclocal",
   "/share/doc",
   "/man",
   "/share/man",
   "/share/gtk-doc",
   "/share/vala",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=filesystem,iostreams,program_options",
     "./b2 headers",
     "./b2 install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.92.0/boost-1.92.0-b2-nodocs.tar.xz",
      "sha256": "ea7b982002cc9dfbe59b0b217b206f470dc75f3de0bb2973d844118934d82411",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "url-template": "https://github.com/boostorg/boost/releases/download/boost-$version/boost-$version-b2-nodocs.tar.xz"
      }
     }
    ]
   },
   {
    "name": "collada-dom",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DOPT_COLLADA14=1",
     "-DOPT_COLLADA15=0"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rdiankov/collada-dom/archive/c1e20b7d6ff806237030fe82f126cb86d661f063.tar.gz",
      "sha256": "8013dda9976fdf62e187ebbcd68e1a1d935f55da89ad8ad87b373e96491767d5"
     },
     {
      "type": "patch",
      "path": "collada-dom-build.patch"
     }
    ]
   },
   {
    "name": "openscenegraph",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DOSG_USE_FLOAT_MATRIX=1",
     "-DOSG_USE_FLOAT_PLANE=1",
     "-DBUILD_OSG_PLUGINS_BY_DEFAULT=0",
     "-DBUILD_OSG_PLUGIN_BMP=1",
     "-DBUILD_OSG_PLUGIN_DAE=1",
     "-DBUILD_OSG_PLUGIN_DDS=1",
     "-DBUILD_OSG_PLUGIN_FREETYPE=1",
     "-DBUILD_OSG_PLUGIN_JPEG=1",
     "-DBUILD_OSG_PLUGIN_OSG=1",
     "-DBUILD_OSG_PLUGIN_PNG=1",
     "-DBUILD_OSG_PLUGIN_TGA=1",
     "-DBUILD_OSG_APPLICATIONS=0",
     "-DBUILD_OSG_EXAMPLES=0",
     "-DBUILD_OSG_DEPRECATED_SERIALIZERS=0"
    ],
    "build-options": {
     "env": {
      "COLLADA_DIR": "/app/include/collada-dom2.5"
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/openmw/osg/archive/b8d836d001e7245b14fb5f836808caf1ce4c4a10.tar.gz",
      "sha256": "8f93ba3612e8d27893ab4ac7f429d2caf77688e147e67bca1bcfa7fde0f1393f",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/openmw/osg/branches/3.6",
       "version-query": ".commit.sha",
       "url-query": "\"https://github.com/openmw/osg/archive/\" + $version + \".tar.gz\""
      }
     }
    ]
   },
   {
    "name": "bullet",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_BULLET2_DEMOS=0",
     "-DBUILD_BULLET3=0",
     "-DBUILD_CPU_DEMOS=0",
     "-DBUILD_EXTRAS=0",
     "-DBUILD_OPENGL3_DEMOS=0",
     "-DBUILD_UNIT_TESTS=0",
     "-DUSE_GLUT=0",
     "-DUSE_GRAPHICAL_BENCHMARK=0",
     "-DUSE_DOUBLE_PRECISION=on",
     "-DBULLET2_MULTITHREADING=on"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/bulletphysics/bullet3/archive/3.25.tar.gz",
      "sha256": "c45afb6399e3f68036ddb641c6bf6f552bf332d5ab6be62f7e6c54eda05ceb77",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7669,
       "url-template": "https://github.com/bulletphysics/bullet3/archive/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "mygui",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DMYGUI_RENDERSYSTEM=1",
     "-DMYGUI_BUILD_DEMOS=0",
     "-DMYGUI_BUILD_TOOLS=0",
     "-DMYGUI_BUILD_PLUGINS=0",
     "-DMYGUI_DONT_USE_OBSOLETE=1",
     "-DGL_SILENCE_DEPRECATION=1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/MyGUI/mygui/archive/refs/tags/MyGUI3.4.4.tar.gz",
      "sha256": "2b4b87c5c04cd9a33413d0ccebc1aa03b56c72873901633c85be2652ceb6785b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12280,
       "url-template": "https://github.com/MyGUI/mygui/archive/refs/tags/MyGUI$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libunshield",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/twogood/unshield/archive/1.6.2.tar.gz",
      "sha256": "a937ef596ad94d16e7ed2c8553ad7be305798dcdcfd65ae60210b1e54ab51a2f",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 16008,
       "url-template": "https://github.com/twogood/unshield/archive/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "recastnavigation",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=Release",
     "-DRECASTNAVIGATION_DEMO=no",
     "-DRECASTNAVIGATION_TESTS=no",
     "-DRECASTNAVIGATION_EXAMPLES=no"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/recastnavigation/recastnavigation/archive/v1.6.0.tar.gz",
      "sha256": "d48ca0121962fa0639502c0f56c4e3ae72f98e55d88727225444f500775c0074",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/recastnavigation/recastnavigation/releases/latest",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": "\"https://github.com/recastnavigation/recastnavigation/archive/\" + $version + \".tar.gz\""
      }
     }
    ]
   },
   {
    "name": "yaml-cpp",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.9.0.tar.gz",
      "sha256": "25cb043240f828a8c51beb830569634bc7ac603978e0f69d6b63558dadefd49a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5284,
       "url-template": "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "luajit",
    "buildsystem": "simple",
    "build-commands": [
     "make PREFIX=/app",
     "make install PREFIX=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/LuaJIT/LuaJIT/archive/c6ffc141a8762b41703f9287d63d93622a13dd8f.tar.gz",
      "sha256": "6e5fec07750add912e7c3eae0c194d24cd6d023714e1f04a0298a5b4819e4457",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/LuaJIT/LuaJIT/branches/v2.1",
       "version-query": ".commit.sha",
       "url-query": "\"https://github.com/LuaJIT/LuaJIT/archive/\" + $version + \".tar.gz\""
      }
     }
    ]
   },
   {
    "name": "openmw",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_BSATOOL=no",
     "-DBUILD_ESMTOOL=no",
     "-DICONDIR=/app/share/icons",
     "-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=yes"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/OpenMW/openmw.git",
      "tag": "openmw-0.51.0",
      "commit": "f4bec41444214a7903bebd178389ca22ca13f646"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's:>org.openmw.launcher.desktop<:>org.openmw.OpenMW.desktop<:' files/openmw.appdata.xml",
       "sed -i 's:Icon=openmw:Icon=org.openmw.OpenMW:' files/org.openmw.launcher.desktop",
       "sed -i 's:Icon=openmw-cs:Icon=org.openmw.OpenMW.OpenCS:' files/org.openmw.cs.desktop"
      ]
     }
    ],
    "post-install": [
     "mv /app/share/applications/org.openmw.launcher.desktop /app/share/applications/org.openmw.OpenMW.desktop",
     "mv /app/share/applications/org.openmw.cs.desktop /app/share/applications/org.openmw.OpenMW.OpenCS.desktop",
     "mkdir -p /app/share/icons/hicolor/256x256/apps",
     "mv /app/share/icons/openmw.png /app/share/icons/hicolor/256x256/apps/org.openmw.OpenMW.png",
     "mv /app/share/icons/openmw-cs.png /app/share/icons/hicolor/256x256/apps/org.openmw.OpenMW.OpenCS.png"
    ]
   }
  ]
 }
}