wok annotate grub2-efi/receipt @ rev 18261

Up tazpkg(827): fix "ghost" packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Aug 05 03:51:17 2015 +0300 (2015-08-05)
parents
children 96c03c2f8bdd
rev   line source
pascal@18162 1 # SliTaz package receipt.
pascal@18162 2
pascal@18162 3 PACKAGE="grub2-efi"
pascal@18162 4 SOURCE="grub"
pascal@18162 5 VERSION="2.00"
pascal@18162 6 CATEGORY="base-system"
pascal@18162 7 SHORT_DESC="GRUB2 boot loader."
pascal@18162 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18162 9 LICENSE="GPL3"
pascal@18162 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@18162 11 WEB_SITE="http://www.gnu.org/software/grub/"
pascal@18162 12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
pascal@18162 13
pascal@18162 14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
pascal@18162 15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
pascal@18162 16 libusb-compat-dev libusb-dev libdevmapper-dev"
pascal@18162 17
pascal@18162 18 # Rules to configure and make the package.
pascal@18162 19 compile_rules()
pascal@18162 20 {
pascal@18162 21 # Fixes for flex 2.5.37
pascal@18162 22 export CFLAGS="-Wno-error=sign-compare"
pascal@18162 23 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
pascal@18162 24
pascal@18162 25 export EFI_ARCH=i386
pascal@18162 26 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@18162 27 --with-platform=efi --target=${EFI_ARCH} --program-prefix="" \
pascal@18162 28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@18162 29 make $MAKEFLAGS
pascal@18162 30 cd grub-core
pascal@18162 31 ../grub-mkimage -d . -o ../bootia32.efi -O i386-efi -p /boot/grub \
pascal@18162 32 ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
pascal@18162 33 iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
pascal@18162 34 xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
pascal@18162 35 loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
pascal@18162 36 scsi loopback normal configfile gzio all_video efi_gop efi_uga \
pascal@18162 37 gfxterm gettext echo boot chain
pascal@18162 38 }
pascal@18162 39
pascal@18162 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18162 41 genpkg_rules()
pascal@18162 42 {
pascal@18162 43 mkdir -p $fs/boot/efi/boot
pascal@18162 44 cp $src/bootia32.efi $fs/boot/efi/boot
pascal@18162 45 }