APKBUILD 1.86 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-nm
4
pkgver=5.17.4
5
pkgrel=1
Bart Ribbers's avatar
Bart Ribbers committed
6
pkgdesc="Plasma applet written in QML for managing network connections"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8
url="https://www.kde.org/workspaces/plasmadesktop/"
9
license="(LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-or-later"
Bart Ribbers's avatar
Bart Ribbers committed
10 11
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"
12
source="https://download.kde.org/stable/plasma/$pkgver/plasma-nm-$pkgver.tar.xz"
13
subpackages="$pkgname-lang $pkgname-mobile"
Bart Ribbers's avatar
Bart Ribbers committed
14

15 16 17 18 19 20
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
21
build() {
22 23
	cd "$builddir"/build
	cmake "$builddir" \
Bart Ribbers's avatar
Bart Ribbers committed
24 25 26 27 28 29 30 31
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_MOBILE=ON
	make
}

check() {
32
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
33 34 35 36
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
37
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
38 39
	DESTDIR="$pkgdir" make install
}
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

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/
}
55
sha512sums="cc16ab698373885b67feef279b59c7760b7fa2dc099b2e0250344faf0aecae1e0514a0d92100f3eb28c37fd582a6fb69dac670eb988d2c1bafa4fa1fb92db06d  plasma-nm-5.17.4.tar.xz"