wok view grub2/receipt @ rev 19935

Up grub2 (2.02)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 30 10:12:31 2017 +0200 (2017-04-30)
parents de8ecd2ce530
children 6a6ea56d432e
line source
1 # SliTaz package receipt.
3 PACKAGE="grub2"
4 SOURCE="grub"
5 VERSION="2.02"
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 # Fixes for flex 2.5.37
22 export CFLAGS="-Wno-error=sign-compare"
23 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
25 #chmod +x install-sh
26 ./configure --prefix=/usr --sysconfdir=/etc \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make $MAKEFLAGS &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/grub $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/sbin $fs/usr
38 cp -a $install/usr/share $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/etc $fs
42 # Example config file (grub.cfg).
43 cp stuff/example-grub.cfg $fs/boot/grub
44 }
46 post_install()
47 {
48 cat <<EOT
49 # To install grub to your sda MBR
50 grub-install /dev/sda
52 # To generate a configuration file
53 grub-mkconfig -o /boot/grub/grub.cfg
55 # You can learn from /boot/grub/example-grub.cfg too.
56 EOT
57 }