abuild (1010B)
1 name=grub 2 version=2.12 3 _fontver=16.0.02 4 release=3 5 source="https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz 6 https://ftp.gnu.org/gnu/unifont/unifont-$_fontver/unifont-$_fontver.pcf.gz 7 no-asorti.patch 8 grub.default" 9 skip_patch=1 10 build_dir=$SRC 11 unset CFLAGS 12 unset CXXFLAGS 13 14 build() { 15 cd .. 16 mv grub-* grub-pc 17 cp -rp grub-pc grub-efi 18 19 _build_grub() { 20 cd grub-${1##*=} 21 patch -p1 < $SRC/no-asorti.patch 22 echo depends bli part_gpt > grub-core/extra_deps.lst 23 ./configure \ 24 --prefix=/usr \ 25 --sysconfdir=/etc \ 26 --enable-grub-mount \ 27 --enable-grub-mkfont \ 28 --disable-werror \ 29 $@ 30 make 31 make install 32 cd - 33 } 34 35 _build_grub --with-platform=pc --target=i386 36 _build_grub --with-platform=efi --target=x86_64 --disable-efiemu 37 38 mkdir -p $PKG/usr/share/grub 39 gunzip $SRC/unifont-$_fontver.pcf.gz 40 $PKG/usr/bin/grub-mkfont $SRC/unifont-$_fontver.pcf -o $PKG/usr/share/grub/unicode.pf2 41 42 mkdir -p $PKG/etc/default 43 cp $SRC/grub.default $PKG/etc/default/grub 44 45 rm -rf $PKG/etc/bash_completion.d 46 }