{
 "app_id": "org.leocad.LeoCAD",
 "source_url": "https://raw.githubusercontent.com/flathub/org.leocad.LeoCAD/master/org.leocad.LeoCAD.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--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.436485+00:00",
 "manifest": {
  "id": "org.leocad.LeoCAD",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "leocad",
  "rename-icon": "leocad",
  "rename-desktop-file": "leocad.desktop",
  "rename-appdata-file": "leocad.appdata.xml",
  "rename-mime-file": "leocad.xml",
  "rename-mime-icons": [
   "application-vnd.leocad"
  ],
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=x11",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--env=QT_ENABLE_HIGHDPI_SCALING=1"
  ],
  "cleanup": [
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   {
    "name": "povray",
    "buildsystem": "autotools",
    "config-opts": [
     "COMPILED_BY=https://flathub.org",
     "--with-boost-libdir=/app/lib"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/leozide/povray.git",
      "commit": "c65ef9d0c931c8e7844c3ae403b5a53c881fc33f"
     },
     {
      "type": "patch",
      "path": "patches/povray/0003-Remove-povuser.patch"
     },
     {
      "type": "shell",
      "commands": [
       "cd unix && ./prebuild.sh"
      ]
     }
    ],
    "modules": [
     {
      "name": "boost",
      "buildsystem": "simple",
      "cleanup": [
       "/include",
       "/lib/libboost_*.a"
      ],
      "build-commands": [
       "./bootstrap.sh --prefix=${FLATPAK_DEST} --with-libraries=date_time,thread",
       "./b2 install variant=release link=shared runtime-link=shared --prefix=/app -j $FLATPAK_BUILDER_N_JOBS"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://downloads.sourceforge.net/project/boost/boost/1.68.0/boost_1_68_0.tar.bz2",
        "sha256": "7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7"
       }
      ]
     }
    ]
   },
   {
    "name": "leocad",
    "buildsystem": "qmake",
    "config-opts": [
     "LDRAW_LIBRARY_PATH=/app/share/leocad",
     "DISABLE_UPDATE_CHECK=1",
     "INSTALL_PREFIX=/app"
    ],
    "post-install": [
     "install -D ldraw.xml ${FLATPAK_DEST}/share/leocad/ldraw.xml",
     "install -D library.bin ${FLATPAK_DEST}/share/leocad/library.bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/leozide/leocad.git",
      "tag": "v25.09",
      "commit": "b497b32592809a64d7ed741882a12ef83b1c42a7"
     },
     {
      "type": "archive",
      "url": "https://github.com/leozide/leocad/releases/download/v25.09/Library-25.08.zip",
      "sha256": "848404645811b00128eb20203b3706a6f2fb8ee68a214debc820f4384dab76ed"
     },
     {
      "type": "patch",
      "path": "patches/leocad-povray.patch"
     },
     {
      "type": "file",
      "url": "https://gitlab.com/sylvainls/lxf2ldr/-/raw/00f0a738c2858ff4bb1d591edcdf62d1ddd33177/common/ldraw.xml",
      "sha256": "9c63428369efbde066d47a4c91d2101903a89b4f35452474e33e776c0261e39c"
     }
    ]
   }
  ]
 }
}