contrib/nextcloud-client/Pkgfile

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-06-11 23:45:47 +02:00
# 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
2019-06-11 23:45:47 +02:00
name=nextcloud-client
2022-03-02 15:48:16 +01:00
version=3.4.3
2020-08-29 16:41:56 +02:00
release=1
source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
2019-06-11 23:45:47 +02:00
build() {
# you need both librsvg and qtwebengine to build the gui client
prt-get isinst librsvg qtwebengine && \
PKGMK_NCC+=' -D SVG_CONVERTER=/usr/bin/rsvg-convert' || \
PKGMK_NCC+=' -D BUILD_GUI=OFF'
cmake -S desktop-$version -B build -G Ninja $PKGMK_NCC \
2020-11-08 13:10:51 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:58:51 +01:00
-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 \
2020-11-08 13:10:51 +01:00
-Wno-dev
2020-07-10 00:23:04 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf $PKG/usr/share/nextcloud
2019-06-11 23:45:47 +02:00
}