# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=plasma-nm pkgver=5.17.5 pkgrel=0 pkgdesc="Plasma applet written in QML for managing network connections" arch="all !armhf" # armhf blocked by qt5-qtdeclarative url="https://www.kde.org/workspaces/plasmadesktop/" license="(LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-or-later" depends="kirigami2 networkmanager" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kwindowsystem-dev kservice-dev kcompletion-dev kwidgetsaddons-dev kio-dev kcoreaddons-dev kwallet-dev kconfigwidgets-dev kiconthemes-dev solid-dev kdbusaddons-dev knotifications-dev plasma-framework-dev kdeclarative-dev qca-dev networkmanager-qt-dev modemmanager-qt-dev mobile-broadband-provider-info" source="https://download.kde.org/stable/plasma/$pkgver/plasma-nm-$pkgver.tar.xz" subpackages="$pkgname-lang $pkgname-mobile" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_MOBILE=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } mobile() { pkgdesc="$pkgdesc (mobile KCM's)" mkdir -p \ "$subpkgdir"/usr/lib/qt5/plugins \ "$subpkgdir"/usr/share/kservices5 mv "$pkgdir"/usr/share/kpackage "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/lib/qt5/plugins/kcms "$subpkgdir"/usr/lib/qt5/plugins mv \ "$pkgdir"/usr/share/kservices5/mobilebroadbandsettings.desktop \ "$pkgdir"/usr/share/kservices5/wifisettings.desktop \ "$subpkgdir"/usr/share/kservices5/ } sha512sums="45792671afd3ae9b8cebcaed7588524f04234394c178055211a1896a8a3e5ffcf48229f65ec7815f1ef51076860bc4388d37de6b058c24e54f0772eb1c3111a3 plasma-nm-5.17.5.tar.xz"