# Template file for 'kwallet'
pkgname=kwallet
version=5.115.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=ON"
hostmakedepends="gettext kcoreaddons extra-cmake-modules
 qt5-host-tools qt5-qmake python3 kdoctools"
makedepends="kdoctools-devel gpgmepp-devel libgcrypt-devel
 kservice-devel knotifications-devel kiconthemes-devel
 gpgmeqt-devel qca-qt5-devel"
short_desc="KDE Safe desktop-wide storage for passwords"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kwallet"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=f2b3fc21c89440c9290703929a8bcb77461fa510fd060c33d64787c9e0eaef3d

do_check() {
	cd build
	# Skip failing tests
	ctest -E "fdo_secrets_test"
}

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