wok-current view grub2/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | 77181abaf3f8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2"
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 libusb-compat ncurses zlib"
16 BUILD_DEPENDS="automake 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 SUGGESTED="os-prober"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
27 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|fprintf(...) |&(void)|' grub-core/script/yylex.l
35 # Avoid grub-mkimage error: decompressor is too big:
36 patch --strip=1 --input=$stuff/patches/gentpl.py-2.04
37 # see also: http://git.savannah.gnu.org/cgit/grub.git/commit/?id=6643507ce30f775008e093580f0c9499dfb2c485
39 ./autogen.sh &&
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --mandir=/usr/share/man \
44 $CONFIGURE_ARGS &&
45 make $MAKEFLAGS &&
46 make install DESTDIR=$DESTDIR
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/boot/grub
53 mkdir -p $fs/etc/default
54 mkdir -p $fs/usr
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/sbin $fs/usr
58 cp -a $install/usr/share $fs/usr
59 cp -a $install/usr/lib $fs/usr
60 cp -a $install/etc $fs
62 cp -a stuff/etc-default-grub $fs/etc/default/grub
64 # Example configuration file (grub.cfg).
65 cp stuff/example-grub.cfg $fs/boot/grub
66 }
68 post_install()
69 {
70 cat <<EOT
72 # To install grub to MBR on device sda enter:
73 grub-install /dev/sda
75 # To modify GRUB defaults, edit
76 /etc/default/grub
78 # To generate a configuration file enter:
79 grub-mkconfig -o /boot/grub/grub.cfg
81 # You can learn from /boot/grub/example-grub.cfg too.
82 EOT
83 }