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
|
|
|
|
# Depends on: libdevmapper, freetype
|
|
|
|
|
|
|
|
name=grub2
|
|
|
|
version=2.00
|
2012-12-10 10:30:36 -06:00
|
|
|
release=3
|
2012-09-05 13:41:50 -05:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
|
2012-12-10 10:30:36 -06:00
|
|
|
http://unifoundry.com/unifont-5.1.20080820.bdf.gz \
|
|
|
|
$name-10_linux.diff grub.cfg.sample)
|
2012-09-05 13:41:50 -05:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CFLAGS="${CFLAGS} -Wno-error"
|
|
|
|
cd grub-$version
|
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
|
2012-09-05 13:41:50 -05:00
|
|
|
patch -i $SRC/$name-10_linux.diff util/grub.d/10_linux.in
|
|
|
|
./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}
|
2012-12-10 10:30:36 -06:00
|
|
|
./grub-mkfont -o $PKG/usr/share/grub/unifont.pf2
|
2012-09-05 13:41:50 -05:00
|
|
|
}
|