contrib/nextcloud-client/Pkgfile
Tim Biermann 7fef2d63ac Updated Pkgfile, read commit message for details
- dropped dependencies: inkscape, qtwebengine
 - new optional dependencies: librsvg, qtwebengine
 - gui build is now optional and enabled, when both librsvg and
   qtwebengine are installed. By default, building the gui required
   inkscape to generate desktop icons. It can fall back to
   librsvg-convert for systems that don't have inkscape installed, since
   this pull request [1]. Since inkscape uses the private poppler
   libraries and is prone to break as well as the fact that librsvg is
   more common to have installed on a desktop install anyway, we use
   librsvg always here.
   It's perfectly possible to use nextcloud-client headless via
   /usr/bin/nextcloudcmd
 - cleaned up the Pkgfile by never building nautilus and nemo files in
   the first place, therefor we don't need to delete them afterwards.
 - help url now points to our flyspray instance. People should report to
   us first before asking upstream.

   [1] https://github.com/nextcloud/desktop/pull/3719
2022-03-12 11:36:27 +01:00

34 lines
1.2 KiB
Plaintext

# Description: Nextcloud desktop client
# URL: https://nextcloud.com/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libevent pciutils qtkeychain
# Optional: doxygen kde5 librsvg qtwebengine
name=nextcloud-client
version=3.4.3
release=1
source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
build() {
# you need both librsvg and qtwebengine to build the gui client
prt-get isinst librsvg qtwebengine || PKGMK_NCC+=' -D BUILD_GUI=OFF'
# always use librsvg-convert to generate icons, if building the gui
sed -i -e 's/inkscape inkscape.exe//' desktop-$version/src/gui/CMakeLists.txt
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 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf $PKG/usr/share/nextcloud
}