2012-09-05 13:41:50 -05:00
|
|
|
# Description: A Multiboot boot loader
|
|
|
|
# URL: http://www.gnu.org/software/grub/
|
2016-06-05 14:16:03 -05:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2014-08-28 14:30:27 -05:00
|
|
|
# Depends on: libdevmapper freetype
|
2012-09-05 13:41:50 -05:00
|
|
|
|
|
|
|
name=grub2
|
2017-05-25 16:21:46 -05:00
|
|
|
version=2.02
|
2015-12-17 15:59:41 -06:00
|
|
|
release=1
|
2017-05-25 16:21:46 -05:00
|
|
|
source=(http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
|
2017-11-08 09:05:10 -06:00
|
|
|
http://jaeger.morpheus.net/linux/crux/files/unifont-9.0.06.pcf.gz \
|
2017-05-25 16:21:46 -05:00
|
|
|
$name-00_header.diff $name-10_linux.diff grub.cfg.sample \
|
|
|
|
$name-intel-ucode.diff)
|
2012-09-05 13:41:50 -05:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CFLAGS="${CFLAGS} -Wno-error"
|
2017-05-25 16:21:46 -05:00
|
|
|
cd grub-$version
|
2014-08-28 14:30:27 -05:00
|
|
|
|
2012-09-21 14:12:55 -05:00
|
|
|
# fix for glibc 'gets' removal
|
|
|
|
sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h
|
2014-08-28 14:30:27 -05:00
|
|
|
|
2015-01-01 16:32:10 -06:00
|
|
|
patch -i $SRC/$name-00_header.diff util/grub.d/00_header.in
|
2012-09-05 13:41:50 -05:00
|
|
|
patch -i $SRC/$name-10_linux.diff util/grub.d/10_linux.in
|
2017-05-25 16:21:46 -05:00
|
|
|
patch -i $SRC/$name-intel-ucode.diff util/grub.d/10_linux.in
|
2014-08-28 14:30:27 -05:00
|
|
|
|
2012-09-05 13:41:50 -05:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-device-mapper \
|
|
|
|
--disable-efiemu \
|
|
|
|
--disable-grub-mount
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2012-09-21 14:12:55 -05:00
|
|
|
rm -rf $PKG/usr/share/{info,locale,grub/themes}
|
2017-05-25 16:21:46 -05:00
|
|
|
gzip -d $SRC/unifont-9.0.06.pcf.gz
|
2014-09-20 14:23:37 -05:00
|
|
|
install -d $PKG/usr/lib/grub/fonts
|
|
|
|
./grub-mkfont -o $PKG/usr/lib/grub/fonts/unifont.pf2 \
|
2017-05-25 16:21:46 -05:00
|
|
|
$SRC/unifont-9.0.06.pcf
|
2012-09-05 13:41:50 -05:00
|
|
|
}
|