2019-08-29 23:45:55 +02:00
|
|
|
# Template file for 'nextcloud-client'
|
|
|
|
pkgname=nextcloud-client
|
2019-11-07 07:47:04 +01:00
|
|
|
version=2.6.1
|
2019-08-29 23:45:55 +02:00
|
|
|
revision=1
|
|
|
|
wrksrc="desktop-${version}"
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-Wno-dev"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="qt5-tools-devel qt5-webengine-devel qt5-declarative-devel
|
|
|
|
qt5-webchannel-devel qt5-location-devel qtkeychain-qt5-devel sqlite-devel
|
|
|
|
qt5-webkit-devel libcloudproviders-devel $(vopt_if dolphin 'extra-cmake-modules kio-devel')"
|
|
|
|
conf_files="/etc/Nextcloud/sync-exclude.lst"
|
|
|
|
short_desc="NextCloud Desktop client"
|
|
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
|
|
license="GPL-2.0-or-later"
|
|
|
|
homepage="https://nextcloud.com/clients/"
|
|
|
|
distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
|
2019-11-07 07:47:04 +01:00
|
|
|
checksum=82f591ddc8ad6c39f48e9ac16e7320c9b5342ede37838bd89e1977655f2482ea
|
2019-08-29 23:45:55 +02:00
|
|
|
|
|
|
|
build_options="dolphin"
|
|
|
|
desc_option_dolphin="Build KDE dolphin support"
|
|
|
|
build_options_default="dolphin"
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2019-10-28 20:42:15 +01:00
|
|
|
arm*) broken="qt5-webengine-devel unavailable" ;;
|
2019-08-29 23:45:55 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
|
|
|
|
# provides desktoptojson
|
|
|
|
hostmakedepends+=" $(vopt_if dolphin 'kcoreaddons')"
|
|
|
|
fi
|
2019-10-28 20:42:15 +01:00
|
|
|
subpackages="$(vopt_if dolphin 'nextcloud-client-dolphin') nextcloud-client-devel"
|
2019-08-29 23:45:55 +02:00
|
|
|
|
|
|
|
nextcloud-client-dolphin_package() {
|
|
|
|
short_desc+=" - KDE dolphin integration"
|
|
|
|
depends="nextcloud-client>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libnextclouddolphinpluginhelper.so
|
|
|
|
vmove usr/lib/qt5
|
|
|
|
vmove usr/share/kservices5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nextcloud-client-devel_package() {
|
|
|
|
depends="nextcloud-client>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/libnextcloudsync.so
|
|
|
|
vmove "usr/lib/nextcloud/*.so"
|
|
|
|
}
|
|
|
|
}
|