{
 "app_id": "com.nextcloud.desktopclient.nextcloud",
 "source_url": "https://raw.githubusercontent.com/flathub/com.nextcloud.desktopclient.nextcloud/master/com.nextcloud.desktopclient.nextcloud.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-run/Nextcloud:create",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.kde.kwalletd5",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.kwalletd6",
  "--own-name=com.nextcloudgmbh.Nextcloud"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:08:22.752429+00:00",
 "manifest": {
  "app-id": "com.nextcloud.desktopclient.nextcloud",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "nextcloud",
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=network",
   "--share=ipc",
   "--filesystem=host:rw",
   "--filesystem=xdg-run/Nextcloud:create",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--own-name=com.nextcloudgmbh.Nextcloud",
   "--talk-name=org.kde.kwalletd5",
   "--talk-name=org.kde.kwalletd6",
   "--env=TMPDIR=/var/tmp"
  ],
  "cleanup": [
   "/lib/*.a",
   "/lib/*.la",
   "/lib/x86_64-linux-gnu/pkgconfig",
   "/share/doc",
   "/share/icons/hicolor/1024x1024"
  ],
  "modules": [
   {
    "name": "qtkeychain",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INSTALL_LIBDIR=lib",
     "-DBUILD_TRANSLATIONS=NO",
     "-DBUILD_WITH_QT6=1"
    ],
    "cleanup": [
     "/include",
     "/mkspecs",
     "/lib/cmake"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/frankosterfeld/qtkeychain/archive/0.15.0.tar.gz",
      "sha256": "f4254dc8f0933b06d90672d683eab08ef770acd8336e44dfa030ce041dc2ca22",
      "x-checker-data": {
       "type": "anitya",
       "url-template": "https://github.com/frankosterfeld/qtkeychain/archive/$version.tar.gz",
       "stable-only": true,
       "project-id": 4138
      }
     }
    ]
   },
   {
    "name": "rsvg-convert-shim",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/bin && ln -s /usr/bin/rsvg-convert /app/bin/inkscape"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "libcloudproviders",
    "buildsystem": "meson",
    "config-opts": [
     "-Dvapigen=false",
     "-Dintrospection=false"
    ],
    "cleanup": [
     "/include"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/World/libcloudproviders.git",
      "tag": "0.4.1",
      "commit": "74def66cd39ab692b0d477f18250add12aafd394",
      "x-checker-data": {
       "type": "anitya",
       "tag-template": "$version",
       "stable-only": true,
       "project-id": 21207
      }
     }
    ]
   },
   {
    "name": "libp11",
    "config-opts": [
     "--with-enginesdir=${FLATPAK_DEST}/lib/engines-3/",
     "--with-modulesdir=${FLATPAK_DEST}/lib/ossl-modules/"
    ],
    "cleanup": [
     "/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenSC/libp11/releases/download/libp11-0.4.21/libp11-0.4.21.tar.gz",
      "sha256": "efdb523aef8613d447e6a2d38227d4b389866f4bcf4b503130acd7f759490847",
      "x-checker-data": {
       "type": "anitya",
       "url-template": "https://github.com/OpenSC/libp11/releases/download/libp11-$version/libp11-$version.tar.gz",
       "stable-only": true,
       "project-id": 1699
      }
     }
    ]
   },
   {
    "name": "KDSingleApplication",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DKDSingleApplication_EXAMPLES=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KDAB/KDSingleApplication/releases/download/v1.2.1/kdsingleapplication-1.2.1.tar.gz",
      "sha256": "e3254ce9dc5ecf6d61ef83264bc61d486a307f0e3c9ed1bb2176f068cdbcbe09",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 370439,
       "url-template": "https://github.com/KDAB/KDSingleApplication/releases/download/v$version/kdsingleapplication-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "nextcloud-client",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_INSTALL_LIBDIR=lib",
     "-DBUILD_SHELL_INTEGRATION_DOLPHIN=0",
     "-DBUILD_SHELL_INTEGRATION_NAUTILUS=0",
     "-DBUILD_UPDATER=OFF",
     "-DPLUGIN_INSTALL_DIR=/app/lib/plugins",
     "-DPLUGINDIR=/app/lib/plugins",
     "-DQT_MAJOR_VERSION=6"
    ],
    "cleanup": [
     "/include"
    ],
    "post-install": [
     "install -Dm644 -t /app/share/metainfo com.nextcloud.desktopclient.nextcloud.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nextcloud/desktop.git",
      "tag": "v34.0.4",
      "commit": "ece94a644d472542f841124067f75cf284899c67",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/nextcloud/desktop/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^[vV]\"; \"\")",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "patch",
      "path": "dbus-service-path.patch"
     },
     {
      "type": "patch",
      "path": "icon-name.patch"
     },
     {
      "type": "file",
      "path": "com.nextcloud.desktopclient.nextcloud.metainfo.xml"
     }
    ]
   }
  ]
 }
}