{
 "app_id": "org.gna.Warmux",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gna.Warmux/master/org.gna.Warmux.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:14:46.134042+00:00",
 "manifest": {
  "app-id": "org.gna.Warmux",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "command": "warmux",
  "rename-desktop-file": "warmux.desktop",
  "rename-icon": "warmux",
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/SDL/SDL-1.2.15.json",
   "shared-modules/smpeg/smpeg-0.4.5.json",
   "shared-modules/SDL/SDL_mixer-1.2.12.json",
   "shared-modules/SDL/SDL_ttf-2.0.11.json",
   "shared-modules/SDL/SDL_image-1.2.12.json",
   "shared-modules/SDL/SDL_net-1.2.8.json",
   {
    "name": "SDL_gfx",
    "config-opts": [
     "--disable-static",
     "--disable-mmx"
    ],
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "--enable-mmx"
       ]
      }
     }
    },
    "rm-configure": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/sdlgfx/SDL_gfx-2.0.25.tar.gz",
      "sha256": "556eedc06b6cf29eb495b6d27f2dcc51bf909ad82389ba2fa7bdc4dec89059c0"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "warmux",
    "config-opts": [
     "--enable-fribidi"
    ],
    "cleanup": [
     "/bin/warmux-list-games",
     "/share/applications/warmux_files.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://pkgs.fedoraproject.org/repo/pkgs/warmux/warmux-11.04.1.tar.bz2/26ff65c43a9bb61a3f0529c98b943e35/warmux-11.04.1.tar.bz2",
      "sha256": "789c4f353e4c5ce0a2aba2e82861d3fd0e5218bc76d8da1a332f2c7b1b27e4ee"
     },
     {
      "type": "patch",
      "path": "warmux-gcc47.patch"
     },
     {
      "type": "patch",
      "path": "warmux-gcc60.patch",
      "strip-components": 0
     },
     {
      "type": "patch",
      "path": "warmux-zlib.patch"
     },
     {
      "type": "file",
      "path": "warmux.appdata.xml"
     },
     {
      "type": "shell",
      "commands": [
       "cp /usr/share/automake-*/config.{guess,sub} ."
      ]
     }
    ],
    "post-install": [
     "install -Dm644 data/icon/warmux.svg -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps",
     "install -Dm644 ${FLATPAK_DEST}/share/pixmaps/warmux_128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/warmux.png",
     "install -Dm644 warmux.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ]
   }
  ]
 }
}