blob: ec3d43848bfbdaa19ad3ecb9788ca1e18fba22dc (
plain)
1 # Description: Nextcloud desktop client
2 # URL: https://nextcloud.com/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: inkscape libevent pciutils qtkeychain qtwebengine
5 # Optional: doxygen kde5
6
7 name=nextcloud-client
8 version=3.3.5
9 release=1
10 source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
11
12 build() {
13 cmake -S desktop-$version -B build -G Ninja \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
19 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
20 -Wno-dev
21 cmake --build build
22 DESTDIR=$PKG cmake --install build
23
24 rm -r $PKG/usr/share/nextcloud
25 # there are no ports for nautilus nor nemo in CRUX atm
26 rm -r $PKG/usr/share/{nautilus-python,nemo-python}
27 # there is caja for mate though, only make it available if it's installed
28 [[ ! -e /usr/lib/pkgconfig/libcaja-extension.pc ]] && rm -r $PKG/usr/share/caja-python || true
29 }
|