# Has no release yet, will be moved to aports with the next KDE Plasma release where it will be included

# 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=plasma-bigscreen
pkgver=6.6.80_git20260404
pkgrel=0
_commit="05a9daec3d3da914ba0f12494fa3b096ba3c7308"
pkgdesc="A 10-feet interface made for TVs"
url="https://plasma-bigscreen.org"
# armhf blocked by qt6-qtdeclarative
# armv7, x86, riscv64 and s390x blocked by qt6-qtwebengine
arch="all !armhf !armv7 !x86 !riscv64 !s390x"
license="LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL"
depends="
	kde-cli-tools
	kdeconnect
	kirigami
	plasma-nano
	plasma-nm
	plasma-pa
	plasma-workspace
	"
# openmp can be removed once kirigami is fixed in Alpine
makedepends="
	bluez-qt-dev
	extra-cmake-modules
	kcmutils-dev
	kdeclarative-dev
	ki18n-dev
	kio-dev
	kirigami-dev
	knotifications-dev
	kwayland-dev
	kwindowsystem-dev
	libcec-dev
	libplasma-dev
	openmp-dev
	plasma-activities-dev
	plasma-activities-stats-dev
	plasma-workspace-dev
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	qt6-qtmultimedia-dev
	qt6-qtwebengine-dev
	samurai
	sdl3-dev
	"
subpackages="$pkgname-lang"
case "$pkgver" in
	*.90*) _rel=unstable;;
	*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/plasma-bigscreen.git"
source="https://invent.kde.org/plasma/plasma-bigscreen/-/archive/$_commit/plasma-bigscreen-$_commit.tar.gz"

options="!check"
builddir="$srcdir/plasma-bigscreen-$_commit"

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

check() {
	ctest --test-dir build
}

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


sha512sums="
7528b51e5b10114dc6754626f46a37e322ed6920508c36a5c9d9eb8c6f24116c172a81ad558533e8c891458cce8cd6ab5eebb1243baeb03e0cbc34ffc26699c6  plasma-bigscreen-05a9daec3d3da914ba0f12494fa3b096ba3c7308.tar.gz
"
