36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Description: Nextcloud desktop client
|
|
# URL: https://nextcloud.com/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: karchive qtkeychain
|
|
# Optional: doxygen qtwebengine librsvg
|
|
|
|
name=nextcloud-client
|
|
version=3.12.1
|
|
release=1
|
|
source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst librsvg && \
|
|
PKGMK_NCC+=' -D SVG_CONVERTER=/usr/bin/rsvg-convert' || \
|
|
PKGMK_NCC+=' -D BUILD_GUI=OFF'
|
|
prt-get isinst qtwebengine || PKGMK_NCC+=' -D BUILD_WITH_WEBENGINE=OFF'
|
|
|
|
cmake -S desktop-$version -B build -G Ninja $PKGMK_NCC \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D APPLICATION_HELP_URL="https://crux.nu/bugs/" \
|
|
-D BUILD_SHELL_INTEGRATION_DOLPHIN=OFF \
|
|
-D BUILD_SHELL_INTEGRATION_NAUTILUS=OFF \
|
|
-D BUILD_TESTING=OFF \
|
|
-D BUILD_UPDATER=OFF \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -rf $PKG/usr/share/nextcloud
|
|
}
|