{
 "app_id": "io.github.benini.scid",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.benini.scid/master/io.github.benini.scid.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:10:40.328969+00:00",
 "manifest": {
  "app-id": "io.github.benini.scid",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "scid",
  "finish-args": [
   "--filesystem=home",
   "--share=network",
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio"
  ],
  "modules": [
   {
    "name": "tcl",
    "subdir": "unix",
    "post-install": [
     "chmod 755 /app/lib/libtcl*.so"
    ],
    "cleanup": [
     "/bin",
     "/lib/pkgconfig",
     "/man"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tcltk/tcl.git",
      "tag": "core-8-6-17",
      "commit": "433df5b20a8bd6957c3bda981c83d65202eb7de7"
     }
    ]
   },
   {
    "name": "tk",
    "subdir": "unix",
    "make-args": [
     "binaries",
     "libraries"
    ],
    "make-install-args": [
     "install-binaries",
     "install-libraries"
    ],
    "post-install": [
     "chmod 755 /app/lib/libtk*.so"
    ],
    "cleanup": [
     "/bin",
     "/lib/pkgconfig",
     "/man"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tcltk/tk.git",
      "tag": "core-8-6-17",
      "commit": "4996d8bd183e51be2acc18ef6e6ee70873d1d9ab"
     }
    ]
   },
   {
    "name": "scid",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_VERBOSE_MAKEFILE=ON"
    ],
    "post-install": [
     "ln -s /app/scid/scid /app/bin/",
     "install -Dma+r flatpak/io.github.benini.scid.svg /app/share/icons/hicolor/scalable/apps/io.github.benini.scid.svg",
     "install -Dma+r flatpak/io.github.benini.scid.desktop /app/share/applications/io.github.benini.scid.desktop",
     "install -Dma+r flatpak/io.github.benini.scid.appdata.xml /app/share/appdata/io.github.benini.scid.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/benini/scid.git",
      "tag": "v5.2.202603",
      "commit": "ad78554b4678c62652a9f3632d3dc762ae167965"
     }
    ]
   },
   {
    "name": "players_data",
    "buildsystem": "simple",
    "build-commands": [
     "unzip *.zip -d /app/scid/"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://prdownloads.sourceforge.net/scid/players-5.1.zip",
      "sha256": "29f31da6baa57038193deff80a6d0f886de0883dc8b991f1b80b2f81b108cf35"
     }
    ]
   },
   {
    "name": "ttk_themes",
    "buildsystem": "simple",
    "build-commands": [
     "mv tclthemes /app/scid/themes"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ukscid/ttk-themes-scid.git",
      "tag": "V1.0",
      "commit": "f6b8f2565e76ffaefc5a5191b0c1494fa73104d7"
     }
    ]
   },
   {
    "name": "stockfish",
    "subdir": "src",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "ARCH": "x86-64"
       }
      },
      "aarch64": {
       "env": {
        "ARCH": "armv8"
       }
      }
     }
    },
    "build-commands": [
     "make -j $FLATPAK_BUILDER_N_JOBS build",
     "make install BINDIR=/app/engines"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/official-stockfish/Stockfish/archive/sf_18.tar.gz",
      "sha256": "22a195567e3493e7c9ca8bf8fa2339f4ffc876384849ac8a417ff4b919607e7b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5750,
       "url-template": "https://github.com/official-stockfish/Stockfish/archive/sf_$version.tar.gz"
      }
     },
     {
      "type": "file",
      "dest": "src",
      "url": "https://tests.stockfishchess.org/api/nn/nn-c288c895ea92.nnue",
      "sha256": "c288c895ea924429ea9092e3f36b2b3c1f00f2a3a4c759ff7e57e79e3b43e4a7"
     },
     {
      "type": "file",
      "dest": "src",
      "url": "https://tests.stockfishchess.org/api/nn/nn-37f18f62d772.nnue",
      "sha256": "37f18f62d772f3107e1d6aaca3898c130c3c86f2ab63e6555fbbca20635a899d"
     }
    ]
   },
   {
    "name": "eigen",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz",
      "sha256": "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72"
     }
    ]
   },
   {
    "name": "openblas",
    "no-autogen": true,
    "make-args": [
     "DYNAMIC_ARCH=1",
     "FC=gfortran",
     "NO_LAPACKE=1",
     "USE_OPENMP=0"
    ],
    "make-install-args": [
     "PREFIX=/app"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/cmake",
     "/lib/*.a",
     "/lib/*.la",
     "/lib/pkgconfig",
     "/share/man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenMathLib/OpenBLAS/archive/v0.3.33.tar.gz",
      "sha512": "68fa2b90a93a2dfd84dfa586af07d90952fd4f2ad8dfe26061be250e80fec8f1a76ad78977f217c7dbdd26291249f1ac38a07f08ef323eee7a248c4cb67cd670",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2540,
       "url-template": "https://github.com/OpenMathLib/OpenBLAS/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "lc0",
    "buildsystem": "meson",
    "config-opts": [
     "-Dopenblas=true",
     "-Dopenblas_libdirs=/app/lib",
     "-Dgtest=false",
     "-Db_lto=true",
     "-Dopencl=false"
    ],
    "post-install": [
     "mkdir -p /app/engines/lc0",
     "mv /app/bin/lc0 /app/engines/lc0/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LeelaChessZero/lc0.git",
      "tag": "v0.31.2",
      "commit": "8ba8aa426460bbeda452754ff7d6a9bb60bb0e54"
     }
    ]
   },
   {
    "name": "nn",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/engines/lc0",
     "gzip -d nn.pb.gz",
     "mv nn.pb /app/engines/lc0/"
    ],
    "sources": [
     {
      "type": "file",
      "dest-filename": "nn.pb.gz",
      "url": "https://storage.lczero.org/files/networks-contrib/t1-512x15x8h-distilled-swa-3395000.pb.gz",
      "sha256": "1fdb1519e5b02e03f1d9201ec8eb95f640e32cc6459a4f14c0eab6890dc097e8"
     }
    ]
   }
  ]
 }
}