aboutsummaryrefslogtreecommitdiffstats
path: root/community/plasma-desktop/APKBUILD
blob: 8787d20e6815d6d0078eccfda41f339459bd5603 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-desktop
pkgver=5.19.4
pkgrel=0
pkgdesc="KDE Plasma Desktop"
# s390x, mips, mips64 blocked by ibus
# armhf blocked by qt5-qtdeclarative
arch="all !s390x !armhf !mips !mips64"
url='https://www.kde.org/workspaces/plasmadesktop/'
license="GPL-2.0-only AND LGPL-2.1-only"
depends="kirigami2 plasma-workspace setxkbmap qqc2-desktop-style ibus-emoji font-noto-emoji"
depends_dev="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtx11extras-dev
	qt5-qtsvg-dev
	kauth-dev
	plasma-framework-dev
	ki18n-dev
	kcmutils-dev
	knewstuff-dev
	kdelibs4support-dev
	knotifications-dev
	knotifyconfig-dev
	attica-dev
	kwallet-dev
	krunner-dev
	kglobalaccel-dev
	kdeclarative-dev
	kpeople-dev
	kdbusaddons-dev
	kactivities-dev
	kactivities-stats-dev
	kconfig-dev
	plasma-workspace-dev
	kwin-dev
	kitemmodels-dev
	kemoticons-dev
	baloo-dev
	fontconfig-dev
	eudev-dev
	xf86-input-libinput-dev
	xf86-input-evdev-dev
	xf86-input-synaptics-dev
	libxkbfile-dev
	libxcursor-dev
	libxi-dev
	ibus-dev
	"
makedepends="$depends_dev extra-cmake-modules kdoctools-dev"
checkdepends="xvfb-run iso-codes"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-desktop-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang knetattach"
options="!check" # Requires running dbus

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install

	rm "$pkgdir"/usr/bin/knetattach
	rm "$pkgdir"/usr/share/applications/org.kde.knetattach.desktop
}

knetattach() {
	pkgdesc="Wizard which makes it easier to integrate network resources with the Plasma Desktop"
	depends="kdelibs4support"

	cd "$builddir"/build/knetattach
	DESTDIR="$subpkgdir" make install
}
sha512sums="3885814588dd855ee41246dc26963c9a0718e8737c1bacaaf8b09e0825dc78dd1ab0dafdeb82ab6802a4d4364ab7bce64c2fd6b2a00a537aaf784fe6242f43d1  plasma-desktop-5.19.4.tar.xz"