wok view grub2-efi/receipt @ rev 25383
updated units (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:22:12 2022 +0100 (2022-07-30) |
parents | 17091bc7c301 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2-efi"
4 VERSION="2.04"
5 CATEGORY="base-system"
6 SHORT_DESC="GRUB2 boot loader."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/grub/"
11 SOURCE="grub"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="http://ftp.gnu.org/gnu/grub/$TARBALL"
15 DEPENDS="freetype grep libdevmapper libusb-compat libusb ncurses zlib"
16 BUILD_DEPENDS="bison flex freetype-dev fuse2-dev libdevmapper-dev
17 libusb-compat-dev libusb-dev ncurses-dev xz-dev zlib-dev"
19 CONFIG_FILES="/etc/default/grub /etc/grub.d/40_custom"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|fprintf(...) |&(void)|' \
32 grub-core/script/yylex.l
33 export EFI_ARCH=i386
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --with-platform=efi \
39 --target=${EFI_ARCH} \
40 --program-prefix="" \
41 --mandir=/usr/share/man \
42 $CONFIGURE_ARGS &&
43 make $MAKEFLAGS
45 cd grub-core
46 ../grub-mkimage -d . -o ../bootia32.efi -O i386-efi -p /boot/grub \
47 all_video appleldr boot btrfs cat chain configfile echo \
48 efi_gop efi_uga elf ext2 extcmd fat gettext gfxterm gzio hfs \
49 hfsplus iso9660 keylayouts linux loadbios loadenv loopback \
50 ls lsacpi lsefimmap lsefisystab lssal lvm memdisk memrw \
51 minicmd minix minix2 mmap msdospart normal ntfs part_apple \
52 part_bsd part_gpt reiserfs scsi search search_fs_file \
53 xfs xnu
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/boot/efi/boot
60 cp $src/bootia32.efi $fs/boot/efi/boot
61 }