sed 's|GNU/Linux|Linux|' -i "util/grub.d/10_linux.in"
sed -e 's#en@cyrillic en@greek##g' -i "po/LINGUAS"

cp -r "${SRC}/grub-$surum/" ${SRC}/grub-efi

common_conf="--enable-boot-time --enable-device-mapper --enable-cache-stats --enable-nls --enable-grub-mkfont --enable-grub-mount --disable-werror"

unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
unset LDFLAGS
unset MAKEJOBS

./configure $confopt \
--with-platform="pc" \
--target="i386" \
--enable-efiemu \
$common_conf
make

cd ${SRC}/grub-efi
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
unset LDFLAGS
unset MAKEJOBS
./autogen.sh
./configure $confopt \
--with-platform="efi" \
--target="x86_64" \
--disable-efiemu \
$common_conf
make
