wok-current view grub2/receipt @ rev 22469
updated activeresource (3.2.6 -> 5.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 27 16:57:16 2019 +0100 (2019-12-27) |
parents | cc07895be981 |
children | 70ff687a5c7f |
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="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
15 DEPENDS="freetype grep libdevmapper libusb libusb-compat ncurses zlib"
16 BUILD_DEPENDS="bison flex freetype-dev fuse-dev libdevmapper-dev
17 libusb-compat-dev libusb-dev ncurses-dev xz-dev zlib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|fprintf(...) |&(void)|' \
23 grub-core/script/yylex.l
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make $MAKEFLAGS &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/boot/grub
37 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/etc $fs
45 # Example configuration file (grub.cfg).
46 cp stuff/example-grub.cfg $fs/boot/grub
47 }
49 post_install()
50 {
51 cat <<EOT
52 # To install grub to MBR on device sda
53 grub-install /dev/sda
55 # To generate a configuration file
56 grub-mkconfig -o /boot/grub/grub.cfg
58 # You can learn from /boot/grub/example-grub.cfg too.
59 EOT
60 }