# Contributor: Rasmus Thomsen # Maintainer: Leonardo Arena pkgname=nextcloud-client pkgver=2.6.0_p1 pkgrel=2 pkgdesc="Nextcloud Desktop Client" url="https://github.com/nextcloud/desktop" arch="all !s390x !ppc64le" # qt5-qtwebengine license="GPL-2.0-only" makedepends="$depends_dev cmake doxygen qt5-qttools-dev qt5-qtkeychain-dev graphviz extra-cmake-modules kio-dev qt5-qtwebengine-dev" subpackages="$pkgname-dev $pkgname-dolphin" options="!check" # no testsuite source="$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/desktop/archive/v${pkgver/_p/-fix}.tar.gz" builddir="$srcdir/desktop-${pkgver/_p/-fix}" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \ -DNO_SHIBBOLETH=TRUE \ -DMIRALL_VERSION_SUFFIX="" make all } package() { make DESTDIR="$pkgdir" install } dolphin() { pkgdesc="$pkgdesc - KDE Dolphin integration" install_if="$pkgname dolphin" mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share mv "$pkgdir"/usr/lib/qt5 "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libnextclouddolphinpluginhelper.so "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/share/kservices5 "$subpkgdir"/usr/share/ } sha512sums="be02ba30e927ab8e025684b602493e549a01ba0f49b66c6a9df98f9627f7fa40ea4c3bc15aa0e057769653478f9b7b222cbe2de52d46f71c611d07912a399c55 nextcloud-client-2.6.0_p1.tar.gz"