aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud-client/APKBUILD
blob: 88c154f596ebade7319bea0f872a9a4a6bf11df7 (plain)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nextcloud-client
pkgver=2.6.1
pkgrel=0
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="dbda59f5ef6f5f85d8344732be4a0b51e51fa9d0180d5b589f79ab6fe1bacf3a63879aee2f297bc76d6257dd830b38c695cf88f98b9e3f788acf9d6b2f11f619  nextcloud-client-2.6.1.tar.gz"