wok-6.x view grub2-efi/receipt @ rev 19473

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