summaryrefslogtreecommitdiff
path: root/grub2/Pkgfile
blob: f32e71e8c03fcb1ef8f7f49b78036b3141e9bbd4 (plain)
    1 # Description: A Multiboot boot loader
    2 # URL: http://www.gnu.org/software/grub/
    3 # Maintainer: Matt Housh, jaeger at morpheus dot net
    4 # Depends on: libdevmapper freetype
    5 
    6 name=grub2
    7 version=2.00
    8 release=6
    9 source=(ftp://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
   10 	http://unifoundry.com/unifont-5.1.20080820.pcf.gz \
   11 	$name-00_header.diff $name-10_linux.diff grub.cfg.sample)
   12 
   13 build() {
   14 	export CFLAGS="${CFLAGS} -Wno-error"
   15 	cd grub-$version
   16 
   17 	# fix for glibc 'gets' removal
   18 	sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h
   19 
   20 	# fix for ftsynth.h path
   21 	sed -i -e 's|freetype/ftsynth.h|freetype2/ftsynth.h|' util/grub-mkfont.c
   22 
   23 	patch -i $SRC/$name-00_header.diff util/grub.d/00_header.in
   24 	patch -i $SRC/$name-10_linux.diff util/grub.d/10_linux.in
   25 
   26 	./configure --prefix=/usr \
   27 		--sysconfdir=/etc \
   28 		--enable-device-mapper \
   29 		--disable-efiemu \
   30 		--disable-grub-mount
   31 	make
   32 	make DESTDIR=$PKG install
   33 	rm -rf $PKG/usr/share/{info,locale,grub/themes}
   34 	gzip -d $SRC/unifont-5.1.20080820.pcf.gz
   35 	install -d $PKG/usr/lib/grub/fonts
   36 	./grub-mkfont -o $PKG/usr/lib/grub/fonts/unifont.pf2 \
   37 		$SRC/unifont-5.1.20080820.pcf
   38 }

Generated by cgit