# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kwayland-integration
pkgver=6.3.5
pkgrel=0
pkgdesc="KWayland integration"
url="https://kde.org/plasma-desktop/"
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends="kglobalaccel5"
makedepends="
	extra-cmake-modules
	kguiaddons5-dev
	kidletime5-dev
	kwayland5-dev
	kwindowsystem5-dev
	qt5-qtbase-dev
	samurai
	wayland-protocols
	"

case "$pkgver" in
	*.*.9*) _rel=unstable;;
	*) _rel=stable;;
esac

_repo_url="https://invent.kde.org/plasma/kwayland-integration.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/kwayland-integration-$pkgver.tar.xz"
options="!check" # Broken

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

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

sha512sums="
ea3eba84cf44e651690144743604b757d1e507a043191600d9f6979fd91601145015ac45e30b29cee672c9256b89f26325e3ae428c78e3eb34c76683593f7043  kwayland-integration-6.3.5.tar.xz
"
