# 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=breeze-grub
pkgver=6.3.5
pkgrel=0
pkgdesc="Breeze theme for GRUB"
arch="noarch !s390x" # s390x blocked by grub
url="https://kde.org/plasma-desktop/"
license="GPL-3.0-or-later"
depends="grub"
makedepends="
	font-unifont
	grub-mkfont
	"

case "$pkgver" in
	*.*.9*) _rel=unstable;;
	*) _rel=stable;;
esac

_repo_url="https://invent.kde.org/plasma/breeze-grub.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/breeze-grub-$pkgver.tar.xz
	fontpath.patch
	"
# No test suite available
options="!check"

build() {
	./mkfont.sh
}

package() {
	install -d "$pkgdir"/usr/share/grub/themes
	cp -r breeze "$pkgdir"/usr/share/grub/themes
}
sha512sums="
1624086b1ab3393cb2a54bdfe8a25e3deaa3196c957ddd2b1c27fa3ef2139700bdd442584b1a60e28abf7bea60f5a4c27dde2fcb606771a1c0ba1f97cd93275b  breeze-grub-6.3.5.tar.xz
3cc8ea5d676ad192b6831f5989a5113815d92bc2a413f73efc7fc91611b26712626eeec8048a3d6d31c4b0ead84a200fd708d9a125853a775c6a5748efcca13d  fontpath.patch
"
