{
 "app_id": "uk.org.greenend.chiark.sgtatham.puzzles",
 "source_url": "https://raw.githubusercontent.com/flathub/uk.org.greenend.chiark.sgtatham.puzzles/master/uk.org.greenend.chiark.sgtatham.puzzles.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=xdg-documents"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:17:35.764084+00:00",
 "manifest": {
  "app-id": "uk.org.greenend.chiark.sgtatham.puzzles",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "mosaic",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--filesystem=xdg-documents"
  ],
  "modules": [
   {
    "name": "halibut",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.3/halibut-1.3.tar.gz",
      "sha256": "aaa0f7696f17f74f42d97d0880aa088f5d68ed3079f3ed15d13b6e74909d3132"
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "imagemagick",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--disable-docs",
     "--with-modules",
     "--with-x",
     "--with-threads",
     "--with-magick_plus_plus",
     "--with-gslib",
     "--with-openexr",
     "--with-rsvg",
     "--with-xml",
     "--with-jbig",
     "--with-openjp2"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ImageMagick/ImageMagick6/archive/6.9.13-21.tar.gz",
      "sha256": "36a7205c73db9107acec5bb7594e3afbde3cc08a89f0a22a15eead387244fa05"
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "puzzles",
    "buildsystem": "cmake-ninja",
    "post-install": [
     "install -Dm644 uk.org.greenend.chiark.sgtatham.puzzles.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 icons/mosaic-128d24.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/uk.org.greenend.chiark.sgtatham.puzzles.png",
     "desktop-file-edit --set-icon=uk.org.greenend.chiark.sgtatham.puzzles uk.org.greenend.chiark.sgtatham.puzzles.mosaic.desktop",
     "install -Dm644 uk.org.greenend.chiark.sgtatham.puzzles.mosaic.desktop ${FLATPAK_DEST}/share/applications/uk.org.greenend.chiark.sgtatham.puzzles.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.tartarus.org/simon/puzzles.git",
      "commit": "7fa03051562ee81e2a5371f8b3a6d0bb6e646aa0"
     },
     {
      "type": "patch",
      "path": "desktop.patch"
     },
     {
      "type": "file",
      "path": "uk.org.greenend.chiark.sgtatham.puzzles.metainfo.xml"
     }
    ]
   }
  ]
 }
}