wok-current view grub2/receipt @ rev 21671

updated pdf2djvu (0.9.4 -> 0.9.12)
author Hans-G?nter Theisgen
date Sat Jun 01 15:33:43 2019 +0100 (2019-06-01)
parents 6a6ea56d432e
children cc07895be981
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 sed -i 's|fprintf(...) |&(void)|' grub-core/script/yylex.l
22 ./configure --prefix=/usr --sysconfdir=/etc \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make $MAKEFLAGS &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/boot/grub $fs/usr
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/usr/share $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 cp -a $install/etc $fs
38 # Example config file (grub.cfg).
39 cp stuff/example-grub.cfg $fs/boot/grub
40 }
42 post_install()
43 {
44 cat <<EOT
45 # To install grub to your sda MBR
46 grub-install /dev/sda
48 # To generate a configuration file
49 grub-mkconfig -o /boot/grub/grub.cfg
51 # You can learn from /boot/grub/example-grub.cfg too.
52 EOT
53 }