{
 "app_id": "io.github.naikari.Naikari",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.naikari.Naikari/master/io.github.naikari.Naikari.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:11:46.660384+00:00",
 "manifest": {
  "id": "io.github.naikari.Naikari",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "naikari",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc"
  ],
  "cleanup": [
   "/include",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/physfs/physfs.json",
   "shared-modules/luajit/luajit.json",
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "libunibreak",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/adah1972/libunibreak/releases/download/libunibreak_5_0/libunibreak-5.0.tar.gz",
      "sha256": "58f2fe4f9d9fc8277eb324075ba603479fa847a99a4b134ccb305ca42adf7158"
     }
    ]
   },
   {
    "name": "glpk",
    "config-opts": [
     "--disable-static"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz",
      "sha256": "4a1013eebb50f728fc601bdd833b0b2870333c3b3e5a816eeba921d95bec6f15",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1183,
       "stable-only": true,
       "url-template": "https://ftp.gnu.org/gnu/glpk/glpk-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/glpk-4.65-unbundle-zlib.patch",
       "patches/glpk-4.65-alias.patch",
       "patches/glpk-5.0-bool.patch"
      ]
     }
    ]
   },
   {
    "name": "openblas",
    "no-autogen": true,
    "make-args": [
     "DYNAMIC_ARCH=1",
     "DYNAMIC_OLDER=1",
     "FC=gfortran",
     "TARGET=GENERIC",
     "USE_OPENMP=0"
    ],
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xianyi/OpenBLAS/releases/download/v0.3.33/OpenBLAS-0.3.33.tar.gz",
      "sha256": "6761af1d9f5d353ab4f0b7497be2643313b36c8f31caec0144bfef198e71e6ab",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2540,
       "stable-only": true,
       "url-template": "https://github.com/xianyi/OpenBLAS/releases/download/v$version/OpenBLAS-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "suitesparse",
    "no-autogen": true,
    "make-args": [
     "PREFIX=${FLATPAK_DEST}",
     "BLAS=-lopenblas",
     "LAPACK=",
     "library"
    ],
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}",
     "BLAS=-lopenblas",
     "LAPACK=",
     "INSTALL_INCLUDE=${FLATPAK_DEST}/include/suitesparse",
     "INSTALL_LIB=${FLATPAK_DEST}/lib",
     "library"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.13.0.tar.gz",
      "sha256": "59c6ca2959623f0c69226cf9afb9a018d12a37fab3a8869db5f6d7f83b6b147d"
     },
     {
      "type": "patch",
      "path": "patches/suitesparse-reduce-build.patch"
     }
    ]
   },
   {
    "name": "naikari",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuildtype=release",
     "-Db_lto=true",
     "-Dauto_features=enabled",
     "-Ddocs_c=disabled",
     "-Ddocs_lua=disabled"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/naikari/naikari.git",
      "tag": "v0.12.0",
      "commit": "f570a552fcf17cc579b0286a7dfb1f2ca1aba2f7",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "stable-only": true,
       "is-main-source": true
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/naikari-fix-missing-header-files.patch",
       "patches/devname.patch"
      ]
     }
    ]
   }
  ]
 }
}