aboutsummaryrefslogtreecommitdiffstats
path: root/community/plasma-nm/APKBUILD
blob: ff72e7cb96d80141dbfa9f3045a4a100f75f73eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-nm
pkgver=5.18.4
_pkgver=5.18.4.1
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"
builddir="$srcdir/$pkgname-$_pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_MOBILE=ON
	make -C build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" make -C build 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="7534267b7e9507b5963c5226eb375bfff426291761db4bfaa8a9c60e491d296d5aebb6cb2373e75dd10b321e706ccdcdce036f174cfb6c5fb12df218f112228b  plasma-nm-5.18.4.1.tar.xz"