# Template file for 'kscreenlocker'
# group=kde-plasma
pkgname=kscreenlocker
version=6.7.4
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules pkg-config qt6-base qt6-tools gettext
 elogind wayland-devel kf6-kpackage kf6-kcmutils kf6-kconfig"
makedepends="qt6-base-private-devel qt6-declarative-devel
 kf6-kcrash-devel
 kf6-kcmutils-devel
 kf6-kio-devel
 kf6-kglobalaccel-devel
 kf6-ki18n-devel
 kf6-kidletime-devel
 kf6-knotifications-devel
 kf6-solid-devel
 kf6-kwindowsystem-devel
 kf6-kxmlgui-devel
 kf6-ksvg-devel
 libplasma-devel
 libX11-devel
 libxcb-devel
 xcb-util-keysyms-devel
 wayland-devel
 layer-shell-qt-devel
 pam-devel
 libkf6screen-devel"
short_desc="KDE Library and components for secure lock screen architecture"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://invent.kde.org/plasma/kscreenlocker"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
checksum=f9cd525d501f08931f2c0b4d08f5384588967bc89fac62e39ed4ae2da2925a39

# stage builds
makedepends+=" kde-plasma-base"
shlib_requires="KDE_Plasma.${version}"

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