316.3. kio-gdrive-26.08.2
gdrive:/ KIO worker for Google Drive, with a share plugin and file properties page
26.08.2-1 · GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-3.0-or-later AND LGPL-2.1-or-later AND CC0-1.0 · 0.5 SBU · 573.3 KiB, 16 files · 44_apps, 261 of 422 · ports/core/kde/kio-gdrive
Homepage: https://invent.kde.org/network/kio-gdrive
kio-gdrive is the gdrive:/ KIO worker. Dolphin and every other KIO program browse, open, upload to and delete from a Google Drive account through it. It also installs a Purpose share plugin that uploads a file to Drive, a context menu action that copies a file’s Drive link, and a file properties page with Drive’s own metadata.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, kdoctools, ki18n, kio, libkgapi, purpose, qtkeychain.
Required by (1): kde-gear-core.
Sources: kio-gdrive-26.08.2.tar.xz (83.0 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kio-gdrive'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_KAccounts6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Purpose=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_DISABLE_FIND_PACKAGE_KAccounts6=ON— Keep accounts in the worker’s own store rather than in KAccounts. Built against kaccounts-integration, which is on the image, the worker offers no sign-in of its own: it lists only the Google accounts added in System Settings → Online Accounts, through signond and signon-ui, and a user who has added none sees an emptygdrive:/. Without it the configure requires QtKeychain: the worker signs in through Google’s page in the web browser, which libkgapi’sAuthJobopens, and stores the token through qtkeychain, built here against libsecret, so it lands in the Secret Service that ksecretd provides in the Plasma session.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Purpose=ON— Make purpose a requirement. Upstream finds it as recommended and drops the share plugin without it.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Directories: /usr/share/doc/HTML/en/kioworker6/gdrive, /usr/share/licenses/kio-gdrive, /usr/share/purpose.
The Drive API calls go through libkgapi, a requirement of the configure. This is a network service: nothing reaches Google until the user opens gdrive:/ and signs in.
kdoctools_install(po) still builds the handbook in every translated language; kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.