aboutsummaryrefslogblamecommitdiffstats
path: root/community/plasma-nm/APKBUILD
blob: 5c364d6fbb14207c0db1c1beec5bf4b44f022ca2 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             
        
                                                                       


                                    
                                                   
                                                                

                                                                                                                                                                                                                                                                                                                                                                                             
                                                                                
                                           

         
                        
                                         


                                             
                           


         
                



                                          
                                                              
 














                                                                                
                                                                                                                                                                      
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-nm
pkgver=5.20.4
pkgrel=0
pkgdesc="Plasma applet written in QML for managing network connections"
# armhf blocked by qt5-qtdeclarative
# s390x blocked by plasma-framework
arch="all !armhf !s390x"
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"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target 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="305ce3d0cab6aa1f8eb42111291866e59e9f1b3e1bc939cb6cf0f6ef911cedf07bd416200cf9d1bc93682d8604f159ec8ddcde43df47b43548a16927e6548edb  plasma-nm-5.20.4.tar.xz"