blob: 2fe46279867601996d111a64e3293ae8009c66eb (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Maintainer (Arch): Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor (Arch): Tyler Dence <tyzoid@archlinux32.org>
# Contributor (Arch): Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Theo von Arx <theova@member.fsf.org>
# parabola changes and rationale:
# - removed qt5-webengine dependency
pkgname=nextcloud-client
pkgver=2.6.2
_commit=1d745535f7a95ff2265d6b6b47121200338fce83
pkgrel=1
pkgrel+=.parabola1
pkgdesc='Nextcloud desktop client'
pkgdesc+=', without nonfree qt5-webengine dependency'
arch=(x86_64)
arch+=(i686 armv7h)
url='https://nextcloud.com/'
license=(GPL)
depends=(openssl sqlite qtkeychain qt5-svg xdg-utils libcloudproviders)
makedepends=(doxygen extra-cmake-modules kio python-sphinx qt5-tools git cmocka)
optdepends=(
'kio: integration with Dolphin'
'nemo-python: integration with Nemo'
'python-nautilus: integration with Nautilus'
'python2-caja: integration with Caja'
)
source=("$pkgname::git+https://github.com/nextcloud/desktop.git?signed#commit=$_commit"
issue1458-workaround.patch::https://github.com/yan12125/desktop/commit/7da680ef7843a52c3136916744f50d4a003bb8b5.patch
issue1458-2.patch::https://github.com/yan12125/desktop/commit/2b313368325dac5b8d0e69394cfcc4faaa745f75.patch
$pkgname-fix-build.diff
$pkgname-FS64630.diff)
source+=(remove-qtwebengine.patch)
validpgpkeys=(
A26B951528EA1BA1678C7AE5D406C75CEE1A36D6 # one of keys controlled by github.com/camilasan
42E775EAA3E47F9E0D5CDB0E00819E3BF4177B28 # controlled by github.com/misch7
)
sha256sums=('SKIP'
'07cd68f54c004175b4a09cce25830a357d0ebaafaf4e4cabfb8b0d4deeded2f3'
'157c87a789219a3442ca5947c48dcd1ef3898612ff32070bf8842a42bfbe857a'
'8b257a0554ceb54a7ed320dbfa3becb97d6845338e28a8aa0a4f6239f3141645'
'6dea4453f220b63b993722cb155d567959600af261403870f5e34d35144a4fa7')
sha256sums+=('77d7afd2dc65a7625e1617dd2c287c1be004deca2f64ecc18a96bb6c3cd733cf')
backup=('etc/Nextcloud/sync-exclude.lst')
prepare() {
# tmpdir for check()
mkdir tmpdir $pkgname/build
# Use system GNUInstallDirs.cmake so that we can benefit from
# https://gitlab.kitware.com/cmake/cmake/merge_requests/3735
rm -v $pkgname/cmake/modules/GNUInstallDirs.cmake
cd $pkgname
patch -Np1 -i ../issue1458-workaround.patch
patch -Np1 -i ../issue1458-2.patch
# https://github.com/nextcloud/desktop/pull/719
# "Rename owncloud tests to nextcloud" - actually breaks building of tests
patch -Np1 -i ../$pkgname-fix-build.diff
# https://bugs.archlinux.org/task/64630
patch -Np1 -i ../$pkgname-FS64630.diff
# Remove qt5-webengine dependency
patch -Np1 -i ../remove-qtwebengine.patch
}
build() {
cd $pkgname/build
# bundled breakpad in libcrashreporter-qt submodule is too old and does not build with glibc >= 2.26
# Upstream fix: https://github.com/google/breakpad/commit/bddcc58860f522a0d4cbaa7e9d04058caee0db9d
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DNO_SHIBBOLETH=1 \
-DWITH_CRASHREPORTER=OFF \
-DUNIT_TESTING=ON \
..
make
# TODO: fix installation of PDF and HTML documents
# WIP at https://github.com/yan12125/desktop/tree/doc-install-path
make doc-man
}
check() {
cd $pkgname/build
# Tests fail if $TMPDIR is too small; specify an alternative for machines
# with a small /tmp partition.
TMPDIR="$srcdir/tmpdir" make test ARGS="-V"
}
package() {
cd $pkgname/build
make DESTDIR="$pkgdir" install
}
|