summaryrefslogtreecommitdiff
path: root/user/plasma-nm/APKBUILD
blob: 68a8b860a45141e767d059ece514c6667c2283ae (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=plasma-nm
pkgver=5.18.3
pkgrel=0
pkgdesc="NetworkManager integration for KDE Plasma desktop"
url="https://www.kde.org/"
arch="all"
license="(LGPL-2.1-only OR LGPL-3.0-only) AND GPL-2.0-only AND GPL-2.0+ AND LGPL-2.0+"
depends="prison-quick"
makedepends="cmake extra-cmake-modules kauth-dev kcodecs-dev kcompletion-dev
	kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kdeclarative-dev
	ki18n-dev kiconthemes-dev kio-dev kitemviews-dev kjobwidgets-dev
	knotifications-dev kpackage-dev kservice-dev kwallet-dev
	kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev modemmanager-qt-dev
	networkmanager-dev networkmanager-qt-dev plasma-framework-dev
	prison-dev qca-dev qt5-qtbase-dev qt5-qtdeclarative-dev solid-dev"
subpackages="$pkgname-lang"
# We don't want to pull NM into plasma-meta, so we do this as a workaround.
install_if="plasma-desktop networkmanager"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-nm-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} \
		.
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="d95a908adf92c21b3eea1561cbebbf241540684afdf3e54c74a7fc6a5198f2c6a3c944f394fd634503b3b51175c65a93a012a9da72712dbe08964ab128a92eca  plasma-nm-5.18.3.tar.xz"