From 5298e965bc784a4985d7fc7502d65682784ee035 Mon Sep 17 00:00:00 2001 From: noarchwastaken Date: Wed, 12 May 2021 19:26:19 -0400 Subject: [PATCH] nextcloud-client: update to 3.2.1. Also added a patch to close #30713. The patch `fallback-primary-screen.patch` comes from upstream master, and should be removed in the next release. upstream commit https://github.com/nextcloud/desktop/commit/aadee15008ca4974e542f3fb6ca1694592d9e6fe --- .../patches/fallback-primary-screen.patch | 15 +++++++++++++++ srcpkgs/nextcloud-client/template | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/nextcloud-client/patches/fallback-primary-screen.patch diff --git a/srcpkgs/nextcloud-client/patches/fallback-primary-screen.patch b/srcpkgs/nextcloud-client/patches/fallback-primary-screen.patch new file mode 100644 index 000000000000..303f0a1ac726 --- /dev/null +++ b/srcpkgs/nextcloud-client/patches/fallback-primary-screen.patch @@ -0,0 +1,15 @@ +upstream: https://github.com/nextcloud/desktop/commit/aadee15008ca4974e542f3fb6ca1694592d9e6fe +--- src/gui/wizard/owncloudwizard.cpp ++++ src/gui/wizard/owncloudwizard.cpp +@@ -116,7 +116,10 @@ OwncloudWizard::OwncloudWizard(QWidget *parent) + void OwncloudWizard::centerWindow() + { + const auto wizardWindow = window(); +- const auto screenGeometry = QGuiApplication::screenAt(wizardWindow->pos())->geometry(); ++ const auto screen = QGuiApplication::screenAt(wizardWindow->pos()) ++ ? QGuiApplication::screenAt(wizardWindow->pos()) ++ : QGuiApplication::primaryScreen(); ++ const auto screenGeometry = screen->geometry(); + const auto windowGeometry = wizardWindow->geometry(); + const auto newWindowPosition = screenGeometry.center() - QPoint(windowGeometry.width() / 2, windowGeometry.height() / 2); + wizardWindow->move(newWindowPosition); diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template index cd130c14be8d..ec201254d5ad 100644 --- a/srcpkgs/nextcloud-client/template +++ b/srcpkgs/nextcloud-client/template @@ -1,6 +1,6 @@ # Template file for 'nextcloud-client' pkgname=nextcloud-client -version=3.2.0 +version=3.2.1 revision=1 wrksrc="desktop-${version}" build_style=cmake @@ -19,7 +19,7 @@ maintainer="yopito " license="GPL-2.0-or-later" homepage="https://nextcloud.com/clients/" distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz" -checksum=da1195b31fec0970121c1567f3cdaf3b9083d46727277116a98e5cd27f57aa60 +checksum=f2d387d35276ea6e6da3ae339ede3d89be81dd4af735739ec280709008eb6645 build_options="dolphin" desc_option_dolphin="Build KDE dolphin support"