# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-plasma-bigscreen
pkgver=0.2
pkgrel=7
_commit_configs="757db09c8738b88d59e5d7b35b9939e91a7a31d7"
pkgdesc="(Wayland) 10-feet variant of Plasma, made for big screen TVs"
url="https://wiki.postmarketos.org/wiki/Plasma_Mobile"
# Crashes on armhf due to https://gitlab.com/postmarketOS/pmaports/issues/75
# temporarily blocked on armv7 by aura-browser
arch="noarch !armhf"
license="GPL-3.0-or-later"
depends="
	elogind
	dnsmasq
	networkmanager
	plasma-bigscreen
	polkit-kde-agent-1
	postmarketos-artwork-wallpapers
	postmarketos-base-ui
	pulseaudio
	qt5-qtvirtualkeyboard
	xdg-desktop-portal-kde
	"
# Required to launch
depends="$depends
	tinydm
	tinydm-openrc
	"
_pmb_recommends="
	aura-browser
	breeze-icons
	mycroft-core
	mycroft-plasmoid
	"
install="$pkgname.post-install $pkgname.post-upgrade"
source="$pkgname-$_commit_configs.tar.gz::https://invent.kde.org/bshah/mycroft-devices/-/archive/$_commit_configs/mycroft-devices-$_commit_configs.tar.gz
	qtlogging.ini
	"
options="!check pmb:gpu-accel"

package() {
	install -Dm644 "$srcdir"/qtlogging.ini \
		"$pkgdir"/etc/xdg/QtProject/qtlogging.ini

	mv "$srcdir"/mycroft-devices-"$_commit_configs"/overlays/bigscreen/etc/xdg/* "$pkgdir"/etc/xdg
}
sha512sums="81bda2692c7321337505814ded1eb8b3d22d92090a1a1ad4a3ac37cec95fdb1ce7158c2b1ee7cdf1d12753ded1adf3216ffe9fc64382ed2ea3fed357bf43003f  postmarketos-ui-plasma-bigscreen-757db09c8738b88d59e5d7b35b9939e91a7a31d7.tar.gz
341f0b866c315f37868ef3e7137cce8b53a0e8e6164e5af71b3e8e2fa68321afbf0652d76124ef84bade1393f701748852ac939aef9daff7e272a0df827780eb  qtlogging.ini"
