{
 "app_id": "net.sourceforge.DuneLegacy",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.DuneLegacy/master/net.sourceforge.DuneLegacy.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:13:46.577703+00:00",
 "manifest": {
  "app-id": "net.sourceforge.DuneLegacy",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "dunelegacy",
  "rename-icon": "dunelegacy",
  "rename-desktop-file": "dunelegacy.desktop",
  "rename-appdata-file": "dunelegacy.appdata.xml",
  "finish-args": [
   "--socket=wayland",
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri"
  ],
  "modules": [
   {
    "name": "sdl2-ttf",
    "buildsystem": "autotools",
    "rm-configure": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libsdl-org/SDL_ttf.git",
      "tag": "release-2.24.0-0-g2a891473eaf05ba1707a4b7913e6c4db7de7458a"
     }
    ]
   },
   {
    "name": "discord-rpc",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/discord/discord-rpc.git",
      "tag": "v3.4.0-0-ge6390c8c4190b59f1cc98bcec688e0037b84974d"
     }
    ],
    "modules": [
     {
      "name": "rapidjson",
      "buildsystem": "cmake",
      "config-opts": [
       "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
       "-DRAPIDJSON_BUILD_TESTS=no"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/Tencent/rapidjson.git",
        "tag": "24b5e7a8b27f42fa16b96fc70aade9106cf7102f"
       }
      ],
      "cleanup": [
       "/share/doc/RapidJSON"
      ]
     }
    ]
   },
   {
    "name": "miniupnp",
    "subdir": "miniupnpc",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/miniupnp/miniupnp.git",
      "tag": "miniupnpd_2_3_9-0-gd66872e34d9ff83a07f8b71371b13419b2089953"
     }
    ],
    "cleanup": [
     "/bin/external-ip.sh",
     "/bin/upnp*"
    ]
   },
   {
    "name": "dunelegacy",
    "buildsystem": "cmake-ninja",
    "post-install": [
     "install -Dm 0644 dunelegacy.desktop ${FLATPAK_DEST}/share/applications/dunelegacy.desktop",
     "install -Dm 0644 dunelegacy.appdata.xml ${FLATPAK_DEST}/share/appdata/dunelegacy.appdata.xml",
     "install -Dm 0644 dunelegacy-128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/dunelegacy.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.code.sf.net/p/dunelegacy/code",
      "tag": "v0.99.5",
      "commit": "a3810102bd00a03c618bb7414d353a337c732fc6",
      "x-checker-data": {
       "type": "git",
       "tag-pattern\"": "^v([\\\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "dunelegacy-0.9.5-cmake.patch"
     },
     {
      "type": "file",
      "path": "dunelegacy.appdata.xml"
     }
    ]
   }
  ],
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/*.so",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "/var"
  ]
 }
}