# Template file for 'grub2'
pkgname=grub2
version=1.97
wrksrc=grub-$version
distfiles="ftp://alpha.gnu.org/gnu/grub/grub-$version.tar.gz"
build_style=gnu_configure
configure_args="--enable-grub-emu --enable-grub-emu-usb
 --enable-grub-fstest --enable-grub-pe2elf --enable-grub-mkfont"
short_desc="GRand Unified Bootloader 2"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=8d582e9627ab6d7c73edaed3c30c933aefc2884aec76cf671d6d40f46ce65673
long_desc="
 This is GRUB 2, the second version of the GRand Unified Bootloader.
 GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more
 robust, more powerful, and more portable."

conf_files="/etc/default/grub /etc/grub.d/40_custom"

Add_dependency full	glibc
Add_dependency build	bison
Add_dependency full	libusb-compat
Add_dependency build	ncurses
Add_dependency full	freetype
Add_dependency build	ruby

post_install()
{
	install -d ${DESTDIR}/etc/default
	install -m644 ${FILESDIR}/grub.default ${DESTDIR}/etc/default/grub
}
