{
 "app_id": "io.github.Cockatrice.cockatrice",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.Cockatrice.cockatrice/master/io.github.Cockatrice.cockatrice.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:10:19.173603+00:00",
 "manifest": {
  "app-id": "io.github.Cockatrice.cockatrice",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "cockatrice",
  "rename-desktop-file": "cockatrice.desktop",
  "rename-icon": "cockatrice",
  "copy-icon": true,
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=home"
  ],
  "cleanup": [
   "*.la",
   "*.a",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "protobuf",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-Dprotobuf_BUILD_TESTS=OFF"
    ],
    "cleanup": [
     "protoc",
     "/bin",
     "/doc",
     "/lib/plugins"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/protocolbuffers/protobuf.git",
      "tag": "v35.1",
      "commit": "35cd01f9fe9afbeea38cc7b979a3b6bfcde82c03",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "cockatrice",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_SHARED_LIBS:BOOL=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Cockatrice/Cockatrice.git",
      "tag": "2026-06-26-Release-3.0.2",
      "commit": "adfeb2234d14f040f2d73ba8ecab92e3dff4a5a8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d-]+Release-[\\d.]+)$",
       "release-url-template": "https://github.com/Cockatrice/Cockatrice/releases/tag/$version",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "io.github.Cockatrice.cockatrice.metainfo.xml"
     }
    ],
    "post-install": [
     "install -Dm644 io.github.Cockatrice.cockatrice.metainfo.xml -t /app/share/metainfo",
     "for size in 64 128 256 512; do rsvg-convert -w $size -h $size -f png -o $size.png /app/share/icons/hicolor/scalable/apps/cockatrice.svg; install -Dm644 $size.png /app/share/icons/hicolor/${size}x${size}/apps/cockatrice.png; done"
    ]
   }
  ]
 }
}