# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kscreenlocker pkgver=9999_git1688448213 pkgrel=0 pkgdesc="Library and components for secure lock screen architecture" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://kde.org/plasma-desktop/" license="GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only)" depends=" elogind linux-pam " depends_dev=" elogind-dev kcmutils-dev kcrash-dev kdeclarative-dev kglobalaccel-dev ki18n-dev kidletime-dev knotifications-dev libkscreen-dev ktextwidgets-dev kwayland-dev kwindowsystem-dev kxmlgui-dev layer-shell-qt-dev libseccomp-dev linux-pam-dev qt5-qtbase-dev qt5-qtx11extras-dev solid-dev xcb-util-keysyms-dev " makedepends=" $depends_dev extra-cmake-modules samurai " checkdepends="xvfb-run" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac source="https://download.kde.org/$_rel/plasma/$pkgver/kscreenlocker-$pkgver.tar.xz kde.pam kde-np.pam " subpackages="$pkgname-dev " options="!check" # Requires running loginctl build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --install build install -D -m644 "$srcdir"/kde.pam "$pkgdir"/etc/pam.d/kde install -m644 "$srcdir"/kde-np.pam "$pkgdir"/etc/pam.d/kde-np } sha512sums=" 1a76bea55a81ead0a0a8714cf7a7f58136f982b06004b0ead9fc8e1f3ee0f635127e72f4d01231f5f8d9a1a3b088c5e2b355537b79978b5f3d84dd2674b7d0fa kscreenlocker-5.27.6.tar.xz 56e87d02d75c4a8cc4ed183faed416fb4972e7f223b8759959c0f5da32e11e657907a1df279d62a44a6a174f5aca8b2ac66a5f3325c5deb92011bcf71eed74c3 kde.pam 565265485dd7466b77966d75a56766216b8bcc187c95a997e531e9481cf50ddbe576071eb0e334421202bcab19aa6de6b93e042447ca4797a24bf97e1d053ffd kde-np.pam " options="$options !strip"