# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-plasma pkgname=plasma-nm pkgver=5.27.7 pkgrel=1 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 _repo_url="https://invent.kde.org/plasma/plasma-nm.git" source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-nm-$pkgver.tar.xz" subpackages="$pkgname-lang $pkgname-mobile" _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/plasma/plasma-nm.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } 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() { ctest --test-dir build --output-on-failure } 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=" b4b1269de1b4fa2644e27161351b00309c6d03eee752d2b4afe3d1f1bee6f325431d759eca90e7f7f1282a4f2065616bad8c5688759228b9636d969025493b0e plasma-nm-5.27.7.tar.xz "