# arctic-kde - KDE Plasma with foot as the terminal and the Arctic colours.
name=arctic-kde
version=1.0.0
release=1
kind=profile
desc="KDE Plasma with foot and the Arctic colour scheme"
url="https://github.com/apiwo/arctic-linux"
license="BSD-2-Clause"
depend="plasma-meta foot sddm sddm-arctic-theme arctic-plasma-theme \
	dolphin kate ark spectacle gwenview okular \
	pipewire wireplumber ttf-jetbrains-mono noto-fonts noto-fonts-emoji"
makedepend=""
source="foot.ini arctic.colors"
sha256="SKIP SKIP"
backup="etc/skel/.config/foot/foot.ini"

package() {
	install -Dm644 foot.ini "$pkgdir/etc/skel/.config/foot/foot.ini"
	install -Dm644 foot.ini "$pkgdir/etc/xdg/foot/foot.ini"

	# Plasma colour scheme matching the Arctic palette.
	install -Dm644 arctic.colors "$pkgdir/usr/share/color-schemes/Arctic.colors"

	# foot as the default terminal, in place of konsole.
	install -Dm644 /dev/null "$pkgdir/etc/skel/.config/kdeglobals"
	cat >"$pkgdir/etc/skel/.config/kdeglobals" <<-'KDE'
		[General]
		TerminalApplication=foot
		ColorScheme=Arctic
		[KDE]
		SingleClick=false
	KDE

	install -d "$pkgdir/usr/share/arctic/profiles"
	printf 'arctic-kde\n' >"$pkgdir/usr/share/arctic/profiles/active"
}
