# 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=aura-browser
pkgver=6.6.80_git20260307
pkgrel=0
_commit="64a02ef757a09420e08b875e4351cf680d2452b4"
pkgdesc="Browser for a fully immersed Big Screen experience allowing you to navigate the world wide web using just your remote control"
url="https://invent.kde.org/plasma/aura-browser"
# armhf blocked by qt6-qtdeclarative
# armv7, x86, riscv64 and s390x blocked by qt6-qtwebengine
arch="all !armhf !armv7 !x86 !riscv64 !s390x"
license="BSD-2-Clause AND (GPL-2.0-only OR GPL-3.0-only) AND CC0-1.0"
makedepends="
	extra-cmake-modules
	ki18n-dev
	kirigami-dev
	openmp-dev
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	qt6-qtmultimedia-dev
	qt6-qtwebengine-dev
	samurai
	"
subpackages="$pkgname-lang"
case "$pkgver" in
	*.90*) _rel=unstable;;
	*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/aura-browser.git"
source="https://invent.kde.org/plasma/aura-browser/-/archive/$_commit/aura-browser-$_commit.tar.gz"
options="!check" # No tests

builddir="$srcdir/aura-browser-$_commit"

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

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

sha512sums="
944ed41d171157edda30c22a0969db358cd2ce95e70e60f69686a3b5839ad4cba5f6f7c0214af3bcf6135d9607fff8aac9fc061c2217d048f178a2e143106cd2  aura-browser-64a02ef757a09420e08b875e4351cf680d2452b4.tar.gz
"
