talimat 756 B

12345678910111213141516171819202122232425262728293031
  1. # Description: A Multiboot boot loader
  2. # URL: http://www.gnu.org/software/grub/
  3. # Pcakager: milisarge
  4. # Depends on:
  5. name=grub
  6. version=2.02-beta3
  7. release=1
  8. source=(http://alpha.gnu.org/gnu/grub/grub-2.02~beta3.tar.xz \
  9. grub2-00_header.diff grub2-10_linux.diff grub.cfg.sample)
  10. build() {
  11. export CFLAGS="${CFLAGS} -Wno-error"
  12. cd grub-2.02~beta3
  13. # fix for glibc 'gets' removal
  14. sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h
  15. patch -i $SRC/grub2-00_header.diff util/grub.d/00_header.in
  16. patch -i $SRC/grub2-10_linux.diff util/grub.d/10_linux.in
  17. ./configure --prefix=/usr \
  18. --sysconfdir=/etc \
  19. --enable-device-mapper \
  20. --disable-efiemu \
  21. --disable-grub-mount
  22. make
  23. make DESTDIR=$PKG install
  24. rm -rf $PKG/usr/share/{info,grub/themes}
  25. }