# Template file for 'kf6-kaccounts-integration'
# group=kde-gear
pkgname=kf6-kaccounts-integration
version=26.04.3
revision=1
build_style=cmake
configure_args="
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules pkg-config qt6-base gettext
 kf6-kpackage kf6-kcmutils qt6-declarative-host-tools"
makedepends="kf6-kcmutils-devel kf6-kparts-devel libaccounts-qt6-devel
 kf6-kwallet-devel kf6-kdbusaddons-devel qt6-base-devel
 qt6-declarative-devel kf6-kcoreaddons-devel
 signond-devel qcoro-qt6-devel kf6-ki18n-devel"
depends="signon-plugin-oauth2 signon-kwallet-extension"
short_desc="Administer web accounts for sites and services across the KDE desktop"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="GPL-2.0-or-later"
homepage="https://invent.kde.org/network/kaccounts-integration"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#kaccounts-integration"
distfiles="${KDE_SITE}/release-service/${version}/src/kaccounts-integration-${version}.tar.xz"
checksum=efdf9f14f7fa917863effd47b0c7ebd0b49687e9205049ff8cb868405f16334c

# depends on webengine
if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" = "64$XBPS_TARGET_WORDSIZE" ]; then
	depends+=" signon-ui"
fi

kf6-kaccounts-integration-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} qt6-base-devel
	 kf6-kcoreaddons-devel libaccounts-qt6-devel signond-devel"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
