# Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox-kde@adelielinux.org> pkgname=sddm-kcm pkgver=5.18.0 pkgrel=0 pkgdesc="KDE configuration applet for SDDM" url="https://www.kde.org/" arch="all" license="GPL-2.0+ AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1+ AND GPL-2.0-only" depends="" makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev qt5-qtdeclarative-dev kcoreaddons-dev ki18n-dev kxmlgui-dev kauth-dev kconfigwidgets-dev kio-dev libxcb-dev xcb-util-image-dev libxcursor-dev knewstuff-dev" install_if="systemsettings sddm" subpackages="$pkgname-lang" source="https://download.kde.org/stable/plasma/$pkgver/sddm-kcm-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ ${CMAKE_CROSSOPTS} . make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { make DESTDIR="$pkgdir" install } sha512sums="d32987a07e809c063915d044ebec88324766829458792ff2ba9dd25a036c4e409a310639d22630b7e987efe97ee823a3239d102b362fe958bdb5df02f0eb2343 sddm-kcm-5.18.0.tar.xz"