aboutsummaryrefslogtreecommitdiffstats
path: root/community/kwayland/APKBUILD
blob: a8cba856d07849f52c557d3c3edf22c68f50e598 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kwayland
pkgver=5.98.0
pkgrel=0
pkgdesc="Qt-style Client and Server library wrapper for the Wayland libraries"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://www.kde.org"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="
	qt5-qtwayland-dev
	wayland-dev
	"
makedepends="$depends_dev
	doxygen
	extra-cmake-modules
	plasma-wayland-protocols
	qt5-qtbase-dev
	qt5-qttools-dev
	wayland-protocols
	samurai
	"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kwayland-$pkgver.tar.xz
	0001-PlasmaWindowManagement-Avoid-unbounded-recursion-and-delay-in-readData.patch
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
options="!check" # Fails due to requiring running Wayland compositor

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="
e714e4a23cda911819d56cf949c0d1f3e83dcac3f59abad01d25424fa615620e381390a2716a9a318ed205e2cc8f83ba0e4fa9322bcbb4522703534384c3b8e9  kwayland-5.98.0.tar.xz
d04e526a440d930187bc11df40b8d106ef034f27c8e5019f5aaea416994ad61f452b4d7a90880a0f9258acc2cafc0fef2530d692907783bb4e23cd913bcd7341  0001-PlasmaWindowManagement-Avoid-unbounded-recursion-and-delay-in-readData.patch
"