2019-06-11 23:45:47 +02:00
|
|
|
# Description: Nextcloud desktop client
|
|
|
|
# URL: https://nextcloud.com/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-06-26 17:19:06 +00:00
|
|
|
# Depends on: inkscape libevent pciutils qtkeychain qtwebengine
|
2020-08-21 16:24:55 +00:00
|
|
|
# Optional: doxygen kde5
|
2019-06-11 23:45:47 +02:00
|
|
|
|
|
|
|
name=nextcloud-client
|
2021-09-30 22:21:00 +02:00
|
|
|
version=3.3.5
|
2020-08-29 14:41:56 +00:00
|
|
|
release=1
|
2020-08-21 16:24:55 +00:00
|
|
|
source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
|
2019-06-11 23:45:47 +02:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 12:10:51 +00:00
|
|
|
cmake -S desktop-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:58:51 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 12:10:51 +00:00
|
|
|
-Wno-dev
|
2020-07-09 22:23:04 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
|
2020-03-12 15:13:19 +00:00
|
|
|
rm -r $PKG/usr/share/nextcloud
|
|
|
|
# there are no ports for nautilus nor nemo in CRUX atm
|
|
|
|
rm -r $PKG/usr/share/{nautilus-python,nemo-python}
|
|
|
|
# there is caja for mate though, only make it available if it's installed
|
2020-07-10 10:58:56 +00:00
|
|
|
[[ ! -e /usr/lib/pkgconfig/libcaja-extension.pc ]] && rm -r $PKG/usr/share/caja-python || true
|
2019-06-11 23:45:47 +02:00
|
|
|
}
|