aboutsummaryrefslogtreecommitdiffstats
path: root/community/plasma-nm
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-12-19 17:41:36 +0100
committerRasmus Thomsen <oss@cogitri.dev>2019-12-19 19:39:03 +0100
commit2cdab6aea7b816f4233b4b341b1bd199a5bc91fe (patch)
tree5a49fe7959642861037fc5b9515a1350d7dcb5d9 /community/plasma-nm
parent5e55327f3bcda30d918600852b2f9a0998a0e73c (diff)
downloadaports-2cdab6aea7b816f4233b4b341b1bd199a5bc91fe.tar.bz2
aports-2cdab6aea7b816f4233b4b341b1bd199a5bc91fe.tar.xz
community/plasma-nm: split out mobile parts
Diffstat (limited to 'community/plasma-nm')
-rw-r--r--community/plasma-nm/APKBUILD19
1 files changed, 17 insertions, 2 deletions
diff --git a/community/plasma-nm/APKBUILD b/community/plasma-nm/APKBUILD
index eb58c6ba61..0c5f1dc53e 100644
--- a/community/plasma-nm/APKBUILD
+++ b/community/plasma-nm/APKBUILD
@@ -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"