aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud-client/APKBUILD
blob: 636106c3ad9f78d6e4e72b249238b29ebaa2f0cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nextcloud-client
pkgver=3.2.3
pkgrel=0
pkgdesc="Nextcloud Desktop Client"
url="https://github.com/nextcloud/desktop"
# mips, s390x, ppc64le and riscv64 blocked by qt5-qtwebengine
# armhf blocked by extra-cmake-modules
arch="all !s390x !ppc64le !armhf !mips64 !riscv64"
license="GPL-2.0-only"
depends="dbus:org.freedesktop.Secrets"
makedepends="$depends_dev cmake doxygen qt5-qttools-dev qt5-qtkeychain-dev
	graphviz extra-cmake-modules inkscape kio-dev qt5-qtwebengine-dev qt5-qtquickcontrols2-dev qt5-qtwebsockets-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
	Nextcloud.conf"
builddir="$srcdir/desktop-${pkgver/_p/-fix}"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \
		-DNO_SHIBBOLETH=TRUE \
		-DMIRALL_VERSION_SUFFIX=""
	cmake --build build
}

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 dolphin"

	mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share

	amove usr/lib/qt5
	amove usr/lib/libnextclouddolphinpluginhelper.so
	amove usr/share/kservices5
}

sha512sums="
bbb247ce4945503a5b1af55ee200edaef000bb21220a9408657e057c98bd3f7bd646dedbedc57048e9f593f3a1d408ac37b4b01c390ecf85dca82868792e922d  nextcloud-client-3.2.3.tar.gz
28faf643e3ba22f3e1f45a96acfba1b3c53c49d4e923974e58e5ad2fdda612f52300608f0e0219e61d3478403fe3c59a9a2c70c3db1c93fbccda1e0638ecbc22  Nextcloud.conf
"