talimat 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Description: Çoklu önyükleme yükleyicisi
  2. # URL: http://www.gnu.org/software/grub/
  3. # Pcakager: alihan-ozturk8@hotmail.com
  4. # Depends on: freetype help2man efivar efibootmgr os-prober dosfstools fuse mtools libisoburn
  5. name=grub
  6. version=2.02-beta3
  7. release=1
  8. source=( ftp://alpha.gnu.org/gnu/grub/grub-2.02~beta3.tar.xz \
  9. http://source.pisilinux.org/1.0/grub2_extras_915resolution_r10.tar.xz \
  10. unifont-6.3.20131217.bdf \
  11. milis_name.patch \
  12. initramfs.patch \
  13. grub_mkconfig.patch \
  14. grub.default)
  15. build() {
  16. cd $name-2.02~beta3
  17. patch -Np1 -i ../milis_name.patch
  18. patch -i $SRC/initramfs.patch util/grub.d/10_linux.in
  19. patch -Np1 -i ../grub_mkconfig.patch
  20. cp $SRC/unifont-6.3.20131217.bdf $SRC/$name-2.02~beta3/unifont.bdf
  21. mkdir -p SRC/$name-2.02~beta3/grub-extras/915resolution
  22. install -d "$SRC/$name-2.02~beta3/grub-extras"
  23. cp -r "$SRC/915resolution" "SRC/$name-2.02~beta3/grub-extras/915resolution"
  24. export GRUB_CONTRIB="$SRC/$name-2.02~beta3/grub-extras/"
  25. unset CFLAGS
  26. unset CPPFLAGS
  27. unset CXXFLAGS
  28. unset LDFLAGS
  29. unset MAKEFLAGS
  30. ./autogen.sh
  31. ./configure --disable-werror \
  32. --with-platform=pc \
  33. --target=i386 \
  34. --enable-mm-debug \
  35. --enable-nls \
  36. --enable-device-mapper \
  37. --enable-cache-stats \
  38. --enable-boot-time \
  39. --enable-grub-mkfont \
  40. --enable-grub-mount \
  41. --prefix="/usr" \
  42. --bindir="/usr/bin" \
  43. --sbindir="/usr/bin" \
  44. --mandir="/usr/share/man" \
  45. --infodir="/usr/share/info" \
  46. --datarootdir="/usr/share" \
  47. --sysconfdir="/etc" \
  48. --program-prefix="" \
  49. --with-bootdir=/boot \
  50. --with-grubdir=grub
  51. cp -r "$SRC/$name-2.02~beta3" "$SRC/$name-2.02~beta3-efi"
  52. cd $SRC/$name-2.02~beta3-efi
  53. unset CFLAGS
  54. unset CPPFLAGS
  55. unset CXXFLAGS
  56. unset LDFLAGS
  57. unset MAKEFLAGS
  58. ./autogen.sh
  59. ./configure --with-platform=efi \
  60. --target=x86_64 \
  61. --enable-mm-debug \
  62. --enable-nls \
  63. --enable-device-mapper \
  64. --enable-cache-stats \
  65. --enable-boot-time \
  66. --enable-grub-mkfont \
  67. --enable-grub-mount \
  68. --prefix="/usr" \
  69. --bindir="/usr/bin" \
  70. --sbindir="/usr/bin" \
  71. --mandir="/usr/share/man" \
  72. --infodir="/usr/share/info" \
  73. --datarootdir="/usr/share" \
  74. --sysconfdir="/etc" \
  75. --program-prefix="" \
  76. --with-bootdir=/boot \
  77. --with-grubdir=grub \
  78. --disable-silent-rules \
  79. --disable-werror
  80. cd $SRC/$name-2.02~beta3
  81. make dist
  82. make
  83. cd $SRC/$name-2.02~beta3-efi
  84. make
  85. cd $SRC/$name-2.02~beta3
  86. ./grub-mkfont -o unicode.pf2 unifont.bdf
  87. mkdir -p $PKG/boot/grub
  88. cp $SRC/$name-2.02~beta3/unicode.pf2 $PKG/boot/grub
  89. make DESTDIR=$PKG install
  90. cd $SRC/$name-2.02~beta3-efi
  91. make DESTDIR=$PKG install
  92. mkdir -p $PKG/etc/default/grub
  93. install -D -m0644 "$SRC/grub.default" "$PKG/etc/default/grub"
  94. }