# Template file for 'kf6-kwallet'
# group=kde-frameworks
pkgname=kf6-kwallet
version=6.28.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext kf6-kdoctools kf6-kconfig pkg-config"
makedepends="kf6-kconfig-devel kf6-kcoreaddons-devel kf6-kcrash-devel
 kf6-kwindowsystem-devel kf6-kcolorscheme-devel kf6-kdbusaddons-devel
 kf6-knotifications-devel kf6-kwidgetsaddons-devel kf6-kdoctools-devel
 gpgmepp-devel qca-qt6-devel libgcrypt-devel libsecret-devel"
short_desc="KWallet: Credential Storage"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kwallet"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=e21130c86ffa0be49065648f4e753d63d3d786fab876f511d9d09da16480f691

# stage builds
makedepends+=" kf6-base"
shlib_requires="KDE_Frameworks.${version}"

# https://bugs.kde.org/show_bug.cgi?id=509680 / https://github.com/void-linux/void-packages/issues/57348
post_install() {
	rm ${DESTDIR}/usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kwallet.service
}

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