3.59. grub-2.06

#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2017-2022 Random Crew
# Distributed under the terms of MIT License.

Configuration

src_config()
{
    ./configure \
        --prefix=${PREFIX} \
        --sysconfdir=/etc \
        --disable-efiemu \
        --disable-werror
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

src_install()
{
    make install ${MAKEOPTS} DESTDIR=${D}

    mkdir -p ${D}${PREFIX}/share/bash-completion/completions
    mv ${D}/etc/bash_completion.d/grub ${D}${PREFIX}/share/bash-completion/completions
}

Build code

grub.build

Other files

meta.txt

Links

url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/grub.html
url.lfs.stage1: