36 lines
957 B
Plaintext
36 lines
957 B
Plaintext
# Description: GNU GRUB2 (EFI version)
|
|
# URL: http://www.gnu.org/software/grub/
|
|
# Maintainer: Matt Housh, jaeger at morpheus dot net
|
|
# Depends on: grub2
|
|
|
|
name=grub2-efi
|
|
version=2.00
|
|
release=4
|
|
source=(http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz)
|
|
|
|
build() {
|
|
export CFLAGS="${CFLAGS} -Wno-error"
|
|
|
|
# fix for glibc 'gets' removal
|
|
sed -i -e '/gets is a/d' grub-$version/grub-core/gnulib/stdio.in.h
|
|
|
|
MODLIST="boot chain configfile fat ext2 linux normal ntfs part_gpt part_msdos"
|
|
|
|
for ARCH in i386 x86_64
|
|
do
|
|
mkdir $ARCH
|
|
cd $ARCH
|
|
../grub-$version/configure --prefix=/usr \
|
|
--with-platform=efi --target=$ARCH \
|
|
--program-prefix=""
|
|
make
|
|
make DESTDIR=$PKG install
|
|
cd grub-core
|
|
../grub-mkimage -O $ARCH-efi -d . -o grub2-$ARCH.efi -p "" $MODLIST
|
|
cp grub2-$ARCH.efi $PKG/usr/lib/grub/
|
|
cd ../..
|
|
done
|
|
|
|
rm -r $PKG/usr/{bin,etc,sbin,share}
|
|
}
|