# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=plasma-nm pkgver=5.27.6 pkgrel=0 pkgdesc="Plasma applet written in QML for managing network connections" # armhf blocked by qt5-qtdeclarative arch="all !armhf" url="https://kde.org/plasma-desktop/" license="(LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-or-later" depends=" kirigami2 networkmanager " makedepends=" extra-cmake-modules kcmutils-dev kcompletion-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kdeclarative-dev ki18n-dev kiconthemes-dev kio-dev knotifications-dev kservice-dev kwallet-dev kwidgetsaddons-dev kwindowsystem-dev mobile-broadband-provider-info modemmanager-qt-dev networkmanager-qt-dev plasma-framework-dev prison-dev qca-dev qt5-qtbase-dev qt5-qtdeclarative-dev samurai solid-dev " case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-nm-$pkgver.tar.xz" subpackages="$pkgname-lang $pkgname-mobile" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_MOBILE=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } mobile() { pkgdesc="$pkgdesc (mobile KCM's)" depends="$depends $pkgname" amove usr/share/kpackage amove usr/lib/qt5/plugins/kcms } sha512sums=" 16c23f161066c10db8d6eaff6f161a2e1bf0f4d3bd6619b6d7ee9638d84fb48322131974771183bde4a9d29ac98f3fac696d1224b2309a45d1442fdffd20c449 plasma-nm-5.27.6.tar.xz "