{
 "app_id": "com.lixgame.Lix",
 "source_url": "https://raw.githubusercontent.com/flathub/com.lixgame.Lix/master/com.lixgame.Lix.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "22.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:17.060331+00:00",
 "manifest": {
  "app-id": "com.lixgame.Lix",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "22.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dmd"
  ],
  "command": "lix",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--socket=pulseaudio"
  ],
  "modules": [
   "shared-modules/physfs/physfs.json",
   {
    "name": "enet",
    "buildsystem": "autotools",
    "cleanup": [
     "/include",
     "*.pc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://enet.bespin.org/download/enet-1.3.17.tar.gz",
      "sha256": "a38f0f194555d558533b8b15c0c478e946310022d0ec7b34334e19e4574dcedc"
     }
    ]
   },
   {
    "name": "allegro",
    "buildsystem": "cmake",
    "builddir": true,
    "cleanup": [
     "/bin",
     "/doc",
     "/info"
    ],
    "config-opts": [
     "-DWANT_DEMO=OFF",
     "-DWANT_DOCS=OFF",
     "-DWANT_EXAMPLES=OFF",
     "-DWANT_TESTS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/liballeg/allegro5/releases/download/5.2.9.1/allegro-5.2.9.1.tar.gz",
      "sha256": "0ee3fc22ae74601ad36c70afd793ff062f0f7187eeb6e78f8a24e5bf69170d30"
     }
    ]
   },
   {
    "name": "lix",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/dmd/bin"
    },
    "build-commands": [
     "dub build --skip-registry=all -f -b releaseXDG"
    ],
    "post-install": [
     "install -Dm755 bin/lix ${FLATPAK_DEST}/bin/lix",
     "install -d ${FLATPAK_DEST}/share/lix",
     "cp -ar data/ images/ levels/ music/ ${FLATPAK_DEST}/share/lix",
     "install -Dm644 doc/lix.6 ${FLATPAK_DEST}%{_mandir}/man6/lix.6",
     "install -Dm644 data/images/lix_logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 data/desktop/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 data/desktop/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/SimonN/LixD.git",
      "commit": "ecfe4f0ba0456cb45ada966294e6a534599e6ac4",
      "tag": "v0.10.30",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's#customReadOnlyDir = \"\"# customReadOnlyDir = \"/app/share\"#g' src/file/filename/fhs.d"
      ]
     },
     {
      "type": "archive",
      "url": "https://www.lixgame.com/dow/lix-music.zip",
      "sha256": "23ef8c20c5bf1674096e8b20ed9011669a9ad66f1135c64198e00e93aeb1f657",
      "strip-components": 0
     },
     "generated-sources.json"
    ]
   }
  ]
 }
}