[package]
name = "grub"
version = "2.14"
release = 4
description = "GNU GRand Unified Bootloader (x86_64 EFI and i386 BIOS)"
url = "https://www.gnu.org/software/grub/"
license = ["GPL-3.0-or-later"]
arch = "x86_64"

[dependencies]
runtime = ["glibc", "xz", "gettext", "coreutils", "grep", "freetype"]
build = ["bison", "flex", "python", "xz", "gettext", "freetype", "gzip"]
provides = []
conflicts = []

[install]
# /etc/default/grub, the lpm hook and all of etc/grub.d: unchanged files are replaced on upgrade, edited ones get .lpmnew.
backup = [
    "etc/default/grub",
    "etc/lpm/hooks.d/grub-mkconfig.toml",
    "etc/grub.d/00_header",
    "etc/grub.d/10_linux",
    "etc/grub.d/20_linux_xen",
    "etc/grub.d/25_bli",
    "etc/grub.d/30_os-prober",
    "etc/grub.d/30_uefi-firmware",
    "etc/grub.d/40_custom",
    "etc/grub.d/41_custom",
    "etc/grub.d/README",
]

[options]
buildflags = false   # GRUB builds firmware code; host hardening flags break it
strip = false        # strip would damage EFI images and modules; package() strips the host tools

# sha256 verified against /sources/MD5SUMS on LE-OS (sources.toml)
[[source]]
url = "https://ftpmirror.gnu.org/grub/grub-2.14.tar.xz"
sha256 = "bc8d3c73535b8838d8c8e2654d73edc4e6ae8c8acdb45d5df5dc9a1547446d43"

# LE-OS settings for grub-mkconfig (/etc/default/grub), and the lpm hook that runs it
# when a kernel changes (etc/lpm/hooks.d/grub-mkconfig.toml, usr/lib/grub/lpm-update-grub)
# GNU Unifont, from which the build makes unicode.pf2; sha256 pinned after checking the
# release signature (Paul Hardy, 95D2E9AB8740D8046387FD151A09227B1F435A33)
[[source]]
url = "https://ftp.gnu.org/gnu/unifont/unifont-18.0.01/unifont-18.0.01.bdf.gz"
sha256 = "2989e0211030d8219fd931aba599fc95c86bc327ce1423848ef949783b208257"

[[source]]
url = "grub.default"
sha256 = "baa1d1b11780039863657788a716ee1d78984ddbdaabed1b1e484884c01fa5d8"

[[source]]
url = "grub-mkconfig.toml"
sha256 = "6ff587fba29cc4e5ba574c9e2354add0a693c5cbf9bc22d6e169564ed74c05eb"

[[source]]
url = "lpm-update-grub"
sha256 = "46ef2744336eef5bcb967f930eae927911baf7637931680d10687dde9b3c9b9e"

[build]
builddate = 1793650254
installed_size = 72765989
lpm_version = "1.5.2"
