# Template file for 'owncloudclient'
pkgname=owncloudclient
version=5.3.2
revision=1
build_style=cmake
configure_args="-Wno-dev -DWITH_AUTO_UPDATER=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="pkg-config extra-cmake-modules qt6-base qt6-tools"
makedepends="qt6-base-devel qtkeychain-qt6-devel libre-graph-api-cpp-qt-client
 KDSingleApplication"
depends="qt6-plugin-sqlite qt6-plugin-tls-openssl qt6-svg"
conf_files="/etc/ownCloud/sync-exclude.lst"
short_desc="Connect to ownCloud servers"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://www.owncloud.org"
changelog="https://raw.githubusercontent.com/owncloud/client/master/CHANGELOG.md"
distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
checksum=3663a168bd0a8cbc0539ef98c6a0acd9035dafee17fba7de8e797cf12805952e

owncloudclient-kde5_package() {
	# kde5 integration has been moved to:
	# https://github.com/owncloud/client-desktop-shell-integration-dolphin
	build_style=meta
	short_desc+=" - KDE 5 integration"
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" (transitional dummy package)"
}

owncloudclient-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} qt5-devel"
	pkg_install() {
		vmove "usr/include"
		vmove "usr/lib/cmake"
		vmove "usr/lib/*.so"
	}
}
