{
 "app_id": "com.github.opentyrian.OpenTyrian",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.opentyrian.OpenTyrian/master/com.github.opentyrian.OpenTyrian.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:45.304594+00:00",
 "manifest": {
  "app-id": "com.github.opentyrian.OpenTyrian",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "opentyrian",
  "rename-appdata-file": "opentyrian.appdata.xml",
  "rename-desktop-file": "opentyrian.desktop",
  "rename-icon": "opentyrian",
  "copy-icon": true,
  "finish-args": [
   "--device=all",
   "--share=network",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--persist=.opentyrian"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   {
    "name": "SDL2_net",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libsdl-org/SDL_net.git",
      "tag": "release-2.2.0",
      "commit": "669e75b84632e2c6cc5c65974ec9e28052cb7a4e"
     }
    ]
   },
   {
    "name": "opentyrian",
    "buildsystem": "simple",
    "build-commands": [
     "make install prefix=${FLATPAK_DEST} gamesdir=${FLATPAK_DEST}/extra"
    ],
    "post-install": [
     "install -Dm755 apply_extra ${FLATPAK_DEST}/bin/apply_extra",
     "install -Dm644 opentyrian.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm644 linux/opentyrian.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm644 linux/icons/tyrian-128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/opentyrian.png",
     "install -Dm644 linux/icons/tyrian-48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/opentyrian.png",
     "install -Dm644 linux/icons/tyrian-32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/opentyrian.png",
     "install -Dm644 linux/icons/tyrian-24.png ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/opentyrian.png",
     "install -Dm644 linux/icons/tyrian-22.png ${FLATPAK_DEST}/share/icons/hicolor/22x22/apps/opentyrian.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/opentyrian/opentyrian",
      "tag": "v2.1.20260913",
      "commit": "5a9d8daa2811347bec3a0c42f8da87682378f3cb",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "path": "opentyrian.appdata.xml"
     },
     {
      "type": "extra-data",
      "filename": "tyrian21.zip",
      "url": "https://camanis.net/tyrian/tyrian21.zip",
      "sha256": "7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277",
      "size": 4754048
     },
     {
      "type": "script",
      "dest-filename": "apply_extra",
      "commands": [
       "unzip -q tyrian21.zip",
       "mv tyrian21 tyrian",
       "rm tyrian21.zip"
      ]
     }
    ]
   }
  ]
 }
}