2012-09-05 13:41:50 -05:00
|
|
|
# Description: A Multiboot boot loader
|
|
|
|
# URL: http://www.gnu.org/software/grub/
|
|
|
|
# Maintainer: Matt Housh, jaeger at morpheus dot net
|
2014-08-28 14:30:27 -05:00
|
|
|
# Depends on: libdevmapper freetype
|
2012-09-05 13:41:50 -05:00
|
|
|
|
|
|
|
name=grub2
|
|
|
|
version=2.00
|
2014-09-20 14:23:37 -05:00
|
|
|
release=5
|
2012-09-05 13:41:50 -05:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
|
2013-01-23 08:47:34 -06:00
|
|
|
http://unifoundry.com/unifont-5.1.20080820.pcf.gz \
|
2012-12-10 10:30:36 -06:00
|
|
|
$name-10_linux.diff grub.cfg.sample)
|
2012-09-05 13:41:50 -05:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CFLAGS="${CFLAGS} -Wno-error"
|
|
|
|
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
|
|
|
|
|
|
|
# fix for ftsynth.h path
|
|
|
|
sed -i -e 's|freetype/ftsynth.h|freetype2/ftsynth.h|' util/grub-mkfont.c
|
|
|
|
|
2012-09-05 13:41:50 -05:00
|
|
|
patch -i $SRC/$name-10_linux.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}
|
2013-01-23 08:47:34 -06:00
|
|
|
gzip -d $SRC/unifont-5.1.20080820.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 \
|
2013-01-23 08:47:34 -06:00
|
|
|
$SRC/unifont-5.1.20080820.pcf
|
2012-09-05 13:41:50 -05:00
|
|
|
}
|