community/plasma-nm: split out mobile parts

This commit is contained in:
Bart Ribbers 2019-12-19 17:41:36 +01:00 committed by Rasmus Thomsen
parent 5e55327f3b
commit 2cdab6aea7

View File

@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-nm
pkgver=5.17.4
pkgrel=0
pkgrel=1
pkgdesc="Plasma applet written in QML for managing network connections"
arch="all !s390x" # Limited by networkmanager -> iwd
url="https://www.kde.org/workspaces/plasmadesktop/"
@ -10,7 +10,7 @@ license="GPL-2.0"
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"
subpackages="$pkgname-lang $pkgname-mobile"
prepare() {
default_prepare
@ -37,4 +37,19 @@ 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="cc16ab698373885b67feef279b59c7760b7fa2dc099b2e0250344faf0aecae1e0514a0d92100f3eb28c37fd582a6fb69dac670eb988d2c1bafa4fa1fb92db06d plasma-nm-5.17.4.tar.xz"