# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=arianna
pkgver=24.08.1
pkgrel=0
pkgdesc="EPub Reader for mobile devices"
url="https://invent.kde.org/graphics/arianna/"
# armhf blocked by extra-cmake-modules
# ppc64le, s390x, riscv64 and loongarch64 blocked by qt6-qtwebengine
# x86 blocked by limited featureset of qt6-qtwebengine
arch="all !armhf !ppc64le !s390x !riscv64 !x86 !loongarch64"
license="(BSD-2-Clause OR BSD-3-Clause) AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.0-or-later OR LGPL-2.1-or-later OR LGPL-3.0-or-later)"
depends="
	kirigami-addons
	kirigami
	"
makedepends="
	baloo-dev
	extra-cmake-modules
	karchive-dev
	kconfig-dev
	kcoreaddons-dev
	kdbusaddons-dev
	kfilemetadata-dev
	ki18n-dev
	kirigami-addons-dev
	kirigami-dev
	kwindowsystem-dev
	qqc2-desktop-style-dev
	qt6-qtbase-dev
	qt6-qthttpserver-dev
	qt6-qtsvg-dev
	qt6-qtwebengine-dev
	qt6-qtwebsockets-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/graphics/arianna.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/arianna-$pkgver.tar.xz"
# No tests
options="!check"

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="
15172bac648c8b34a18615a4b1e3151cf445c70a3b4b4435f16422d329e3095997749d61438d0bacdd15e71c05709b4e96d3b0a33cdb14dcbb2ea4e3ac48e423  arianna-24.08.1.tar.xz
"
