blob: 09d81be421954dd648b8093f1142bef23c7faea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
name=grub
version=2.12
release=1
source="https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
https://unifoundry.com/pub/unifont/unifont-15.0.01/font-builds/unifont-15.0.01.pcf.gz::noextract
no-asorti.patch
grub.default"
skip_patch=1
build_dir=$SRC
unset CFLAGS
unset CXXFLAGS
build() {
cd ..
mv grub-* grub-pc
cp -rp grub-pc grub-efi
_build_grub() {
cd grub-${1##*=}
patch -p1 < $SRC/no-asorti.patch
echo depends bli part_gpt > grub-core/extra_deps.lst
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-grub-mount \
--enable-grub-mkfont \
--disable-werror \
$@
make
make install
cd -
}
_build_grub --with-platform=pc --target=i386
_build_grub --with-platform=efi --target=x86_64 --disable-efiemu
mkdir -pv $PKG/usr/share/fonts/unifont
gunzip -c $SRC/unifont-15.0.01.pcf.gz > $PKG/usr/share/fonts/unifont/unifont.pcf
mkdir -p $PKG/etc/default
cp $SRC/grub.default $PKG/etc/default/grub
}
|