blob: 424539bb5a19340b668f44b61403877271760701 (
plain)
1 # Description: A Multiboot boot loader
2 # URL: http://www.gnu.org/software/grub/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: libdevmapper freetype python3
5
6 name=grub2
7 version=2.06
8 release=2
9 source=(http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
10 http://jaeger.morpheus.net/linux/crux/files/unifont-9.0.06.pcf.gz \
11 $name-00_header.diff $name-10_linux.diff grub.cfg.sample)
12
13 build() {
14 export CFLAGS="${CFLAGS} -Wno-error -Os"
15 export PYTHON=python3
16 cd grub-$version
17
18 patch -i $SRC/$name-00_header.diff util/grub.d/00_header.in
19 patch -i $SRC/$name-10_linux.diff util/grub.d/10_linux.in
20
21 ./configure --prefix=/usr \
22 --sysconfdir=/etc \
23 --enable-device-mapper \
24 --disable-efiemu \
25 --disable-grub-mount
26 make
27 make DESTDIR=$PKG install
28 rm -rf $PKG/usr/share/{info,locale,grub/themes}
29 gzip -d $SRC/unifont-9.0.06.pcf.gz
30 install -d $PKG/usr/lib/grub/fonts
31 ./grub-mkfont -o $PKG/usr/lib/grub/fonts/unifont.pf2 \
32 $SRC/unifont-9.0.06.pcf
33 }
|