{
 "app_id": "org.librepcb.LibrePCB",
 "source_url": "https://raw.githubusercontent.com/flathub/org.librepcb.LibrePCB/master/org.librepcb.LibrePCB.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk//6.10",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--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": 3,
 "fetched_at": "2026-09-17T16:15:59.436493+00:00",
 "manifest": {
  "app-id": "org.librepcb.LibrePCB",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk//6.10",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin"
  },
  "command": "librepcb",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--share=network",
   "--filesystem=home"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "opencascade",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "env": {
      "FLATPAK_BUILDER_N_JOBS": "8"
     }
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DINSTALL_DIR=/app",
     "-DBUILD_LIBRARY_TYPE=Shared",
     "-DBUILD_DOC_Overview=0",
     "-DBUILD_MODULE_ApplicationFramework=0",
     "-DBUILD_MODULE_DataExchange=1",
     "-DBUILD_MODULE_Draw=0",
     "-DBUILD_MODULE_FoundationClasses=0",
     "-DBUILD_MODULE_ModelingAlgorithms=0",
     "-DBUILD_MODULE_ModelingData=0",
     "-DBUILD_MODULE_Visualization=0",
     "-DUSE_DRACO=0",
     "-DUSE_FREEIMAGE=0",
     "-DUSE_FREETYPE=0",
     "-DUSE_GLES2=0",
     "-DUSE_OPENGL=0",
     "-DUSE_OPENVR=0",
     "-DUSE_RAPIDJSON=0",
     "-DUSE_TBB=0",
     "-DUSE_TK=0",
     "-DUSE_VTK=0"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_9_1.tar.gz",
      "sha256": "de442298cd8860f5580b01007f67f0ecd0b8900cfa4da467fa3c823c2d1a45df"
     }
    ]
   },
   {
    "name": "librepcb",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_HOME": "/run/build/librepcb/cargo",
      "FLATPAK_BUILDER_N_JOBS": "8"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path libs/librepcb/rust-core/Cargo.toml --verbose",
     "cargo --offline fetch --manifest-path libs/slint/Cargo.toml --verbose",
     "mkdir build && cd build && cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/app -DCMAKE_INSTALL_LIBDIR=lib && ninja && ninja install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LibrePCB/LibrePCB",
      "tag": "2.1.1",
      "commit": "06465bf12659a2c20464b3389929a28427d28ad7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 154259,
       "tag-template": "$version"
      }
     },
     {
      "type": "patch",
      "path": "0001-reduce-slint-compilation-units.patch"
     },
     "rust-core-sources.json",
     "slint-sources.json"
    ]
   }
  ]
 }
}