{
 "app_id": "net.sourceforge.OpenLieroX",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.OpenLieroX/master/net.sourceforge.OpenLieroX.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:13:46.577707+00:00",
 "manifest": {
  "app-id": "net.sourceforge.OpenLieroX",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "openlierox",
  "rename-icon": "OpenLieroX",
  "rename-desktop-file": "openlierox-openlierox.desktop",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--share=network",
   "--device=dri"
  ],
  "modules": [
   "shared-modules/SDL/sdl12-compat.json",
   "shared-modules/SDL/SDL_image-1.2.12.json",
   "shared-modules/SDL/SDL_mixer-1.2.12.json",
   {
    "name": "libgd",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz",
      "sha256": "3fe822ece20796060af63b7c60acb151e5844204d289da0ce08f8fdf131e5a61"
     }
    ]
   },
   {
    "name": "openlierox",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DDEBUG=OFF",
     "-DBREAKPAD=OFF",
     "-DSYSTEM_DATA_DIR=/app/share",
     "-DHAWKNL_BUILTIN=ON",
     "-DLIBZIP_BUILTIN=ON",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "post-install": [
     "install -Dm755 bin/openlierox -t ${FLATPAK_DEST}/bin/",
     "install -d ${FLATPAK_DEST}/share/OpenLieroX/",
     "cp -r share/gamedir/* ${FLATPAK_DEST}/share/OpenLieroX/",
     "install -Dm644 share/OpenLieroX.svg -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/",
     "install -Dm644 share/openlierox-openlierox.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm644 net.sourceforge.OpenLieroX.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/openlierox/OpenLieroX_0.58_rc5.src.tar.bz2",
      "sha256": "3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb"
     },
     {
      "type": "patch",
      "paths": [
       "patches/fix-cmake-4.patch",
       "patches/fix-libxml2-build.patch",
       "patches/fix-missing-include.patch"
      ]
     },
     {
      "type": "file",
      "path": "net.sourceforge.OpenLieroX.appdata.xml"
     }
    ]
   }
  ]
 }
}