# Contributor: Bart Ribbers <bribbers@disroot.org>

# 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.2.4
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
	*.90*) _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="
48bc820e4106ed3af2a4fee9a500b60e7ad9965a1800d8531ae838657e7094e983e9b2da26b7df731d19accf1062fe3c2f853c91fc931cb5b696d2c3920dbcc3  breeze-grub-6.2.4.tar.xz
3cc8ea5d676ad192b6831f5989a5113815d92bc2a413f73efc7fc91611b26712626eeec8048a3d6d31c4b0ead84a200fd708d9a125853a775c6a5748efcca13d  fontpath.patch
"
