{
 "app_id": "org.hedgewars.Hedgewars",
 "source_url": "https://raw.githubusercontent.com/flathub/org.hedgewars.Hedgewars/master/org.hedgewars.Hedgewars.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 34,
 "fetched_at": "2026-09-17T16:15:16.413188+00:00",
 "manifest": {
  "app-id": "org.hedgewars.Hedgewars",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "hedgewars",
  "rename-desktop-file": "hedgewars.desktop",
  "rename-icon": "hedgewars",
  "rename-appdata-file": "hedgewars.appdata.xml",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=all",
   "--share=network",
   "--persist=.hedgewars",
   "--env=QT_QPA_PLATFORM=xcb;wayland"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   "shared-modules/lua5.1/lua-5.1.5.json",
   "shared-modules/physfs/physfs.json",
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_ttf.json",
   {
    "name": "freepascal",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/freepascal/files/Linux/3.2.2/fpc-3.2.2.x86_64-linux.tar",
      "sha256": "5adac308a5534b6a76446d8311fc340747cbb7edeaacfe6b651493ff3fe31e83",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "html",
       "url": "https://www.freepascal.org/download.html",
       "version-pattern": "The latest release is <b>([^<]+)</b>",
       "url-template": "https://sourceforge.net/projects/freepascal/files/Linux/$version/fpc-$version.x86_64-linux.tar"
      }
     },
     {
      "type": "archive",
      "url": "https://downloads.freepascal.org/fpc/beta/3.2.4-rc1/aarch64-linux/fpc-3.2.4-rc1.aarch64-linux.tar",
      "sha256": "2e0a2a4c2a28e5a19357ee6c447180212e0e31ce067eceb4e21cd385116daab4",
      "only-arches": [
       "aarch64"
      ]
     }
    ],
    "build-commands": [
     "printf '%s\\n' /app n n | ./install.sh",
     "LIBDIR=\"/app/lib/fpc/$(fpc -iV)\"\n\"${LIBDIR}/samplecfg\" \"${LIBDIR}\" /app/lib/fpc/etc\n"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.haskell.org/~ghc/9.4.8/ghc-9.4.8-x86_64-deb10-linux.tar.xz",
      "sha256": "fc77eaae5b89f29177bf159fd95ce438066ec64a46bf69df61b267102afdb10e",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": "\\(ghc-([\\d.]+)\\)",
       "url-template": "https://downloads.haskell.org/~ghc/$version/ghc-$version-x86_64-deb10-linux.tar.xz"
      },
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "url": "https://downloads.haskell.org/~ghc/9.4.8/ghc-9.4.8-aarch64-deb10-linux.tar.xz",
      "sha256": "278e287e1ee624712b9c6d7803d1cf915ca1cce56e013b0a16215eb8dfeb1531",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": "\\(ghc-([\\d.]+)\\)",
       "url-template": "https://downloads.haskell.org/~ghc/$version/ghc-$version-aarch64-deb10-linux.tar.xz"
      },
      "only-arches": [
       "aarch64"
      ]
     }
    ],
    "build-commands": [
     "./configure --prefix=/app",
     "make install"
    ],
    "cleanup": [
     "*"
    ],
    "x-haskell-package-build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ]
   },
   {
    "name": "haskell-primitive",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/primitive-0.8.0.0/primitive-0.8.0.0.tar.gz",
      "sha256": "5553c21b4a789f9b591eed69e598cc58484c274af29250e517b5a8bcc62b995f",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">primitive-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/primitive-$version/primitive-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-vector-stream",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/vector-stream-0.1.0.0/vector-stream-0.1.0.0.tar.gz",
      "sha256": "a888210f6467f155090653734be5cc920406a07227e0d3adb59096716fdb806c",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">vector-stream-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/vector-stream-$version/vector-stream-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbase\\b/ s/< *4\\.17/<5/' *.cabal",
       "sed -i '/\\bghc-prim\\b/ s/< *0\\.9/<0.10/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-vector",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/vector-0.13.1.0/vector-0.13.1.0.tar.gz",
      "sha256": "63f272279eab8ab9411a0fffb1252ac309b297313f8e33be9ebbc2f981edecee",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">vector-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/vector-$version/vector-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-network",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/network-2.8.0.1/network-2.8.0.1.tar.gz",
      "sha256": "61f55dbfed0f0af721a8ea36079e9309fcc5a1be20783b44ae500d9e4399a846"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbytestring\\b/ s/== *0\\.10\\.\\*/>=0.10 \\&\\& <0.12/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-data-array-byte",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/data-array-byte-0.1.0.1/data-array-byte-0.1.0.1.tar.gz",
      "sha256": "1bb6eca0b3e02d057fe7f4e14c81ef395216f421ab30fdaa1b18017c9c025600",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">data-array-byte-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/data-array-byte-$version/data-array-byte-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-hashable",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/hashable-1.4.3.0/hashable-1.4.3.0.tar.gz",
      "sha256": "32efb16c2891786209b7cbe5c39df9b3a9ae51e836f1a54f646bc4602b7ab0f5",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">hashable-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/hashable-$version/hashable-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-split",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/split-0.2.3.5/split-0.2.3.5.tar.gz",
      "sha256": "bf8aa8d610354a2b576946a6c838251ec5988c8374100638e6b2604513b93159",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">split-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/split-$version/split-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-unordered-containers",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/unordered-containers-0.2.19.1/unordered-containers-0.2.19.1.tar.gz",
      "sha256": "1b27bec5e0d522b27a6029ebf4c4a6d40acbc083c787008e32fb55c4b1d128d2",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">unordered-containers-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/unordered-containers-$version/unordered-containers-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\btemplate-haskell\\b/ s/< *2\\.19/<3/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-bitvec",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/bitvec-1.1.5.0/bitvec-1.1.5.0.tar.gz",
      "sha256": "83d27cee5be1d5342ddbf39999d0c8ea54cb433d0891eea5471fbfaa29f8dec5",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">bitvec-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/bitvec-$version/bitvec-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-vector-algorithms",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/vector-algorithms-0.9.0.1/vector-algorithms-0.9.0.1.tar.gz",
      "sha256": "2ba7c0d3a8f26ef3ada24ff4abe81609225ecbab3b5754f048f8a0a3ecc33841",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">vector-algorithms-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/vector-algorithms-$version/vector-algorithms-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bprimitive\\b/ s/< *0\\.8/<0.9/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-mono-traversable",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/mono-traversable-1.0.15.3/mono-traversable-1.0.15.3.tar.gz",
      "sha256": "98b220f3313d74227a4249210c8818e839678343e62b3ebb1b8c867cf2b974b7",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">mono-traversable-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/mono-traversable-$version/mono-traversable-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-unliftio-core",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/unliftio-core-0.2.1.0/unliftio-core-0.2.1.0.tar.gz",
      "sha256": "99384cba8d56d9d61b85e38a313a93ebcdb78be6566367f0930ef580597fe3e3",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">unliftio-core-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/unliftio-core-$version/unliftio-core-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbase\\b/ s/< *4\\.17/<5/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-resourcet",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/resourcet-1.2.6/resourcet-1.2.6.tar.gz",
      "sha256": "f83b35b2106854750ef5f1c34695ea8b7bba6e0572cedf9f2993c5acfdb5fd34",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">resourcet-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/resourcet-$version/resourcet-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-conduit",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/conduit-1.3.5/conduit-1.3.5.tar.gz",
      "sha256": "2bb0d3e0eecc43e3d1d8cfc2125914f9175cde752be2d5908a1e120f321c782d",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">conduit-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/conduit-$version/conduit-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-sandi",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/sandi-0.5/sandi-0.5.tar.gz",
      "sha256": "4940a19fe9c5e9b08a9f139a0806a30b956d007efa973f3763bed3165154afd9",
      "x-checker-data": {
       "type": "json",
       "url": "https://hackage.haskell.org/package/sandi.json",
       "version-query": "to_entries | sort_by([.value==\"normal\",(.key|split(\".\")|map(tonumber))[]]) | .[-1].key",
       "url-query": "\"https://hackage.haskell.org/package/sandi-\" + $version + \"/sandi-\" + $version + \".tar.gz\""
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-old-locale",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/old-locale-1.0.0.7/old-locale-1.0.0.7.tar.gz",
      "sha256": "dbaf8bf6b888fb98845705079296a23c3f40ee2f449df7312f7f7f1de18d7b50",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">old-locale-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/old-locale-$version/old-locale-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbase\\b/ s/< *4\\.9/<5/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-hslogger",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/hslogger-1.3.1.0/hslogger-1.3.1.0.tar.gz",
      "sha256": "7f2364f6c0b9c5b85a257267a335816126ef2471c817a42797a5d3c57acaca5b",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">hslogger-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/hslogger-$version/hslogger-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbase\\b/ s/< *4\\.14/<5/' *.cabal",
       "sed -i '/\\bbytestring\\b/ s/< *0.11/<0.12/' *.cabal",
       "sed -i '/\\btime\\b/ s/< *1.10/<2/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-utf8-string",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/utf8-string-1.0.2/utf8-string-1.0.2.tar.gz",
      "sha256": "ee48deada7600370728c4156cb002441de770d0121ae33a68139a9ed9c19b09a",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">utf8-string-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/utf8-string-$version/utf8-string-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-SHA",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/SHA-1.6.4.4/SHA-1.6.4.4.tar.gz",
      "sha256": "6bd950df6b11a3998bb1452d875d2da043ee43385459afc5f16d471d25178b44",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">SHA-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/SHA-$version/SHA-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-entropy",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/entropy-0.4.1.10/entropy-0.4.1.10.tar.gz",
      "sha256": "85ac1d53f1d1c095aedd23fdb20c8e3ada04a7fd8aa6d7e6445ae6a59a277de5",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">entropy-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/entropy-$version/entropy-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-zlib",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/zlib-0.6.3.0/zlib-0.6.3.0.tar.gz",
      "sha256": "9eaa989ad4534438b5beb51c1d3a4c8f6a088fdff0b259a5394fbf39aaee04da",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">zlib-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/zlib-$version/zlib-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-splitmix",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/splitmix-0.1.0.5/splitmix-0.1.0.5.tar.gz",
      "sha256": "9df07a9611ef45f1b1258a0b412f4d02c920248f69d2e2ce8ccda328f7e13002",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">splitmix-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/splitmix-$version/splitmix-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-random",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/random-1.2.1.1/random-1.2.1.1.tar.gz",
      "sha256": "3e1272f7ed6a4d7bd1712b90143ec326fee9b225789222379fea20a9c90c9b76",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">random-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/random-$version/random-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-regex-base",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/regex-base-0.94.0.2/regex-base-0.94.0.2.tar.gz",
      "sha256": "7b99408f580f5bb67a1c413e0bc735886608251331ad36322020f2169aea2ef1",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">regex-base-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/regex-base-$version/regex-base-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/\\bbase\\b/ s/< *4\\.17/<5/' *.cabal"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "haskell-regex-tdfa",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://hackage.haskell.org/package/regex-tdfa-1.3.2.2/regex-tdfa-1.3.2.2.tar.gz",
      "sha256": "933ed5c54246bb50e335d86b884ffb70bc252b5f776fb291f162a80a27bd75b7",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.stackage.org/lts-21",
       "version-pattern": ">regex-tdfa-([\\d.]+)<",
       "url-template": "https://hackage.haskell.org/package/regex-tdfa-$version/regex-tdfa-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "echo -e 'import Distribution.Simple\\nmain = defaultMain' > Setup.hs"
      ]
     }
    ],
    "build-commands": [
     "runhaskell Setup configure --prefix=/app --extra-lib-dirs=/app/lib",
     "runhaskell Setup build",
     "runhaskell Setup install"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "hedgewars",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "for res in 16 32 48 64 128 256 512; do\n  if [ ${res} -le 32 ]; then\n    src=misc/hedgewars_ico.png\n  else\n    src=misc/hedgewars.png\n  fi\n  gst-launch-1.0 filesrc location=\"${src}\" ! pngdec ! videoscale ! video/x-raw,width=${res},height=${res} ! pngenc ! filesink location=icon_${res}.png || exit 1\n  install -Dm0644 icon_${res}.png /app/share/icons/hicolor/${res}x${res}/apps/hedgewars.png || exit 1\ndone\n"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.hedgewars.org/download/releases/hedgewars-src-1.0.3.tar.bz2",
      "sha256": "c5c1877c0bae1354c75d2b9527b6f9a9f79e99932e5d08b1f6f7de1708066130",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.hedgewars.org/download.html",
       "pattern": "href=\"(/download/releases/hedgewars-src-([\\d.]+).tar[^\"]*)\""
      }
     },
     {
      "type": "patch",
      "path": "hedgewars-appdata.patch"
     }
    ],
    "cleanup": [
     "/share/pixmaps"
    ]
   }
  ]
 }
}