blob: 86142b2001a8fafb9f129266100a3b2237dd890a (
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
|
# Maintainer:
# Contributor: Michael Riegert <michael at eowyn net>
# Contributor: Danilo Kuehn <dk at nogo-software dot de>
## useful links
# https://nextcloud.com/
# https://github.com/nextcloud/desktop
# basic info
_pkgname="nextcloud-client"
pkgname="$_pkgname-git"
pkgver=3.13.0.r215.gd787728
pkgrel=1
pkgdesc="Nextloud client for linux"
url="https://github.com/nextcloud/desktop"
license=('GPL-2.0-or-later')
arch=('i686' 'x86_64')
depends=(
'karchive'
'libcloudproviders'
'qt6-5compat'
'qt6-svg'
'qt6-webengine'
'qt6-websockets'
'qtkeychain-qt6'
)
makedepends=(
'extra-cmake-modules'
'git'
)
optdepends=(
'nemo-python: integration with Nemo'
'python-caja: integration with Caja'
'python-gobject' # silence namcap
'python-nautilus: integration with Nautilus'
)
provides=('owncloud-client' 'nextcloud-client')
conflicts=('owncloud-client' 'nextcloud-client')
backup=('etc/Nextcloud/sync-exclude.lst')
_pkgsrc="$_pkgname"
source=(
"$_pkgsrc"::"git+https://github.com/nextcloud/desktop.git"
'dschmidt.libcrashreporter-qt'::'git+https://github.com/dschmidt/libcrashreporter-qt.git'
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd "$_pkgsrc"
local _tag=$(git tag | grep -Ev '[a-z]{2}' | sort -rV | head -1)
local _ver="${_tag#v}"
local _rev=$(git rev-list --count --cherry-pick $_tag...HEAD)
local _hash=$(git rev-parse --short=7 HEAD)
printf '%s.r%s.g%s' "${_ver:?}" "${_rev:?}" "${_hash:?}"
}
prepare() {
_submodule_update() {
local _module
for _module in "${_submodules[@]}"; do
git submodule init "${_module##*::}"
git submodule set-url "${_module##*::}" "$srcdir/${_module%::*}"
git -c protocol.file.allow=always submodule update "${_module##*::}"
done
}
cd "$srcdir/$_pkgsrc"
local _submodules=(
'dschmidt.libcrashreporter-qt'::'src/3rdparty/libcrashreporter-qt'
)
_submodule_update
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX='/usr'
-DCMAKE_INSTALL_LIBDIR='lib'
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|