{
 "app_id": "org.dhewm3.Dhewm3",
 "source_url": "https://raw.githubusercontent.com/flathub/org.dhewm3.Dhewm3/master/org.dhewm3.Dhewm3.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": 13,
 "fetched_at": "2026-09-17T16:14:26.669105+00:00",
 "manifest": {
  "app-id": "org.dhewm3.Dhewm3",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "command": "dhewm3.sh",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "build-options": {
   "cxxflags": "-std=c++17"
  },
  "cleanup": [
   "/include",
   "*.a",
   "*.la",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "backtrace",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ianlancetaylor/libbacktrace/archive/7e2b7da3d6568d2e4e78658f22e701746a48d7e1.zip",
      "sha256": "00e4e08099d7adb57e37dfb165c8256e368cccf8dc70706e90e25327603bec7e"
     }
    ]
   },
   {
    "name": "dhewm3",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DREPRODUCIBLE_BUILD=ON",
     "-DCMAKE_EXE_LINKER_FLAGS=-lcurl"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/dhewm/dhewm3/archive/refs/tags/1.5.5.tar.gz",
      "sha256": "7e12a41cbf837eb2b7543b623f6d2a28a8a108a9ce55a221233e50a71d781c36",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 9154,
       "url-template": "https://github.com/dhewm/dhewm3/archive/refs/tags/$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm 644 dist/linux/share/icons/hicolor/128x128/apps/org.dhewm3.Dhewm3.png -t /app/share/icons/hicolor/128x128/apps/",
       "install -Dm 644 dist/linux/share/icons/hicolor/256x256/apps/org.dhewm3.Dhewm3.png -t /app/share/icons/hicolor/256x256/apps/",
       "install -Dm 644 dist/linux/share/icons/hicolor/scalable/apps/org.dhewm3.Dhewm3.svg -t /app/share/icons/hicolor/scalable/apps/",
       "mv ./neo/* ./",
       "mkdir -p /app/share/dhewm3"
      ]
     }
    ]
   },
   {
    "name": "cdoom",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 cdoom.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "c6d2afac06b3b0b16e2efc7e23e27c60822eefa9"
     }
    ]
   },
   {
    "name": "dentonmod",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 dentonmod.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "72d2c417645d47a382b061d2a6db4a46e060145d"
     }
    ]
   },
   {
    "name": "fitz",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 fitz.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "41cfd224f9c3d4ba9b3882aae8c349efa4ae7148"
     }
    ]
   },
   {
    "name": "hardcorps",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 hardcorps.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "d8d797c2481169743a8907c67f161b059f072a26"
     }
    ]
   },
   {
    "name": "libreocoop",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "post-install": [
     "install -Dm 755 librecoop.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Stradex/librecoop/",
      "commit": "0daec5b6a7553cb4b06d65b717e2d9a411ff47ca"
     }
    ]
   },
   {
    "name": "rivensin",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 rivensin.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "4416ef0f7ebb4f9dd0e68442404621204ab5fdde"
     }
    ]
   },
   {
    "name": "lostmission",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 d3le.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "0e6e3519b21eae4690810180210cc90b0174dc3d"
     }
    ]
   },
   {
    "name": "bloodmod",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 bloodmod.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "7a432428a18f8843dae049cf5c4e84f293b75aac"
     }
    ]
   },
   {
    "name": "perfected",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 perfected.so /app/lib/dhewm3",
     "install -Dm 755 perfected_roe.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "20a7240238f9dcd4864e841343550b18605ac34a"
     }
    ]
   },
   {
    "name": "sikkmod",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -Dm 755 sikkmod.so /app/lib/dhewm3",
     "install -Dm 755 sikkmodd3xp.so /app/lib/dhewm3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dhewm/dhewm3-sdk",
      "commit": "03aae2f5b74a18ed5fdbfe9c345a4d50203c7518"
     }
    ]
   },
   {
    "name": "launcher",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 644 org.dhewm3.Dhewm3.desktop -t /app/share/applications",
     "install -Dm 644 org.dhewm3.Dhewm3.d3xp.desktop -t /app/share/applications",
     "install -Dm 644 org.dhewm3.Dhewm3.metainfo.xml -t /app/share/metainfo",
     "install -Dm 744 dhewm3.sh -t /app/bin/",
     "install -Dm 744 dhewm3_d3xp.sh -t /app/bin/"
    ],
    "sources": [
     {
      "type": "file",
      "path": "org.dhewm3.Dhewm3.desktop"
     },
     {
      "type": "file",
      "path": "org.dhewm3.Dhewm3.d3xp.desktop"
     },
     {
      "type": "file",
      "path": "org.dhewm3.Dhewm3.metainfo.xml"
     },
     {
      "type": "script",
      "commands": [
       "ls ~/.var/app/org.dhewm3.Dhewm3/data/dhewm3/base || zenity --error --text \"Game data /base/ must be added to:\\n~/.var/app/org.dhewm3.Dhewm3/data/dhewm3/\" --ok-label \"Close\" --width=400",
       "dhewm3 \"$@\""
      ],
      "dest-filename": "dhewm3.sh"
     },
     {
      "type": "script",
      "commands": [
       "ls ~/.var/app/org.dhewm3.Dhewm3/data/dhewm3/d3xp || zenity --error --text \"Game data /d3xp/ must be added to:\\n~/.var/app/org.dhewm3.Dhewm3/data/dhewm3/\" --ok-label \"Close\" --width=400",
       "dhewm3 +set fs_game d3xp \"$@\""
      ],
      "dest-filename": "dhewm3_d3xp.sh"
     }
    ]
   }
  ]
 }
}