# Template file for 'libkgapi'
# group=kde-gear
pkgname=libkgapi
version=26.04.3
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules qt6-base python3 qt6-tools kf6-kconfig
 gettext kf6-kcoreaddons"
makedepends="kf6-kcalendarcore-devel kf6-kcontacts-devel kf6-kio-devel kf6-kwallet-devel"
short_desc="KDE-based library for accessing various Google services"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/pim/libkgapi"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=ad43a76a774cd21c9ed899fbea4959042d66747296e1e521ec2b313713b12bee

do_check() {
	:
}

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