{
 "app_id": "de.klayout.KLayout",
 "source_url": "https://raw.githubusercontent.com/flathub/de.klayout.KLayout/master/de.klayout.KLayout.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=wayland",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:09:23.356854+00:00",
 "manifest": {
  "app-id": "de.klayout.KLayout",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "klayout",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=wayland",
   "--filesystem=host",
   "--device=dri"
  ],
  "cleanup": [
   "/share/doc"
  ],
  "modules": [
   {
    "name": "libyaml",
    "sources": [
     {
      "type": "archive",
      "url": "http://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz",
      "sha256": "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4",
      "x-checker-data": {
       "type": "html",
       "url": "https://pyyaml.org/wiki/LibYAML",
       "pattern": "(http://pyyaml.org/download/libyaml/yaml-([\\d\\.]+)\\.tar\\.gz)"
      }
     }
    ]
   },
   {
    "name": "libssh2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
     "-DBUILD_SHARED_LIBS:BOOL=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.libssh2.org/download/libssh2-1.11.1.tar.gz",
      "sha256": "d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1730,
       "url-template": "https://www.libssh2.org/download/libssh2-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libgit2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_SHARED_LIBS:BOOL=ON",
     "-DBUILD_TESTS:BOOL=OFF",
     "-DUSE_SSH:BOOL=ON",
     "-DUSE_THREADS:BOOL=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libgit2/libgit2/archive/v1.9.7/libgit2-1.9.7.tar.gz",
      "sha256": "1a4fbe7589e814777ae76b64734ad80f4ecad22cd33a22682a2aaea4ae5375e7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1627,
       "url-template": "https://github.com/libgit2/libgit2/archive/v$version/libgit2-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "ruby",
    "config-opts": [
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.7.tar.gz",
      "sha256": "911ace20f90d068ca0e4dda6d0e4f0f81e52e52f2dd4f4004c721e253412e82d",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.ruby-lang.org/en/downloads/",
       "pattern": "(https://cache.ruby-lang.org/pub/ruby/[\\d\\.]+/ruby-([\\d\\.]+)\\.tar\\.gz)"
      }
     }
    ]
   },
   {
    "name": "klayout",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "LIBRARY_PATH": "/app/lib"
     }
    },
    "build-commands": [
     "bash ./build.sh -bin ${FLATPAK_DEST}/bin -j$FLATPAK_BUILDER_N_JOBS"
    ],
    "post-install": [
     "install -Dm644 de.klayout.KLayout.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 etc/klayout.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 etc/logo.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "desktop-file-edit --set-icon=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.klayout.org/downloads/source/klayout-0.30.12.tar.gz",
      "sha256": "fa747d9a4c216d0645587e05df365d5c22f73609ab98b34471372c711d8c2b75",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.klayout.de/build.html",
       "version-pattern": "klayout-([\\d\\.]+).tar.gz",
       "url-template": "https://www.klayout.org/downloads/source/klayout-$version.tar.gz"
      }
     },
     {
      "type": "file",
      "path": "de.klayout.KLayout.metainfo.xml"
     }
    ]
   }
  ]
 }
}