# Contributor: Rasmus Thomsen # Maintainer: Leonardo Arena pkgname=nextcloud-client pkgver=3.9.1 pkgrel=0 pkgdesc="Nextcloud Desktop Client" url="https://github.com/nextcloud/desktop" # s390x, ppc64le and riscv64 blocked by qt5-qtwebengine # armhf blocked by extra-cmake-modules arch="all !s390x !ppc64le !armhf !riscv64" license="GPL-2.0-only" depends="dbus:org.freedesktop.Secrets qt5-qtquickcontrols" makedepends=" $depends_dev cmake doxygen extra-cmake-modules graphviz inkscape kio-dev libcloudproviders-dev openssl-dev>3 qtkeychain-dev qt5-qtquickcontrols2-dev qt5-qttools-dev qt5-qtwebengine-dev qt5-qtwebsockets-dev samurai " checkdepends="cmocka-dev xvfb-run" subpackages="$pkgname-dev $pkgname-dolphin" source="$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/desktop/archive/refs/tags/v$pkgver.tar.gz lfs64.patch Nextcloud.conf" builddir="$srcdir/desktop-$pkgver" # secfixes: # 3.8.1-r0: # - CVE-2023-28999 # 3.6.6-r0: # - CVE-2023-23942 # - CVE-2023-28997 # - CVE-2023-28998 # 3.6.2-r0: # - CVE-2022-41882 # - CVE-2023-22472 build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \ -DMIRALL_VERSION_SUFFIX="" cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(SyncXAttrTest|ChunkingNgTest)" } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 "$srcdir"/Nextcloud.conf "$pkgdir"/etc/Nextcloud/Nextcloud.conf } dolphin() { pkgdesc="$pkgdesc - KDE Dolphin integration" install_if="$pkgname=$pkgver-r$pkgrel dolphin" amove usr/lib/qt5 amove usr/lib/libnextclouddolphinpluginhelper.so } sha512sums=" dfe91982dfc4bc9da55f6d84e69881e3f605e26ac566c627fea81c7634c5db77bd6b43be92dc62aba00625586fa9b36936a3bea1062c3fb66fe3545dfa546ce1 nextcloud-client-3.9.1.tar.gz eb530ce62da1c4983ef7d0500d93fd02d55139607109689dc8fea80049a75a5f9b3a7e4e529af886f92312419c6c0f163621e4def82d3ef919431c84ce91930e lfs64.patch 28faf643e3ba22f3e1f45a96acfba1b3c53c49d4e923974e58e5ad2fdda612f52300608f0e0219e61d3478403fe3c59a9a2c70c3db1c93fbccda1e0638ecbc22 Nextcloud.conf "