wok-6.x annotate grub2/receipt @ rev 15327

libmng: remove automake depricated automatic de-ANSI-fication support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 28 09:30:43 2013 +0000 (2013-09-28)
parents c79cc4583669
children 99ae478b6540
rev   line source
pascal@4478 1 # SliTaz package receipt.
pascal@4478 2
pascal@4478 3 PACKAGE="grub2"
pascal@4478 4 SOURCE="grub"
pascal@13114 5 VERSION="2.00"
pascal@4478 6 CATEGORY="base-system"
pascal@4478 7 SHORT_DESC="GRUB2 boot loader."
pascal@4478 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
pascal@13114 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@14999 11 WEB_SITE="http://www.gnu.org/software/grub/"
pascal@14999 12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
pascal@14999 13
pascal@13115 14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
pascal@13115 15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
pascal@13115 16 libusb-compat-dev libusb-dev libdevmapper-dev"
pascal@4478 17
pascal@4478 18 # Rules to configure and make the package.
pascal@4478 19 compile_rules()
pascal@4478 20 {
pascal@4478 21 cd $src
pascal@13386 22
pascal@13386 23 # Fixes for flex 2.5.37
pascal@13386 24 export CFLAGS="-Wno-error=sign-compare"
pascal@13386 25 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
pascal@13386 26
pascal@13842 27 #chmod +x install-sh
pascal@4478 28 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@4478 29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@15265 30 make $MAKEFLAGS &&
pascal@13114 31 make DESTDIR=$DESTDIR install
pascal@4478 32 }
pascal@4478 33
pascal@4478 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 35 genpkg_rules()
pascal@4478 36 {
pascal@4478 37 mkdir -p $fs/boot/grub $fs/usr
pascal@14999 38 cp -a $install/usr/bin $fs/usr
pascal@14999 39 cp -a $install/usr/sbin $fs/usr
pascal@14999 40 cp -a $install/usr/share $fs/usr
pascal@14999 41 cp -a $install/usr/lib $fs/usr
pascal@14999 42 cp -a $install/etc $fs
pascal@4478 43
pascal@4478 44 # Example config file (grub.cfg).
pascal@4478 45 cp stuff/example-grub.cfg $fs/boot/grub
pascal@13842 46 }
pascal@13842 47
pascal@13842 48 post_install()
pascal@13842 49 {
pascal@13841 50 cat <<EOT
pascal@13841 51 # To install grub to your sda MBR
pascal@13841 52 grub-install /dev/sda
pascal@13841 53
pascal@13841 54 # To generate a configuration file
pascal@13841 55 grub-mkconfig -o /boot/grub/grub.cfg
pascal@13841 56
pascal@13841 57 # You can learn from /boot/grub/example-grub.cfg too.
pascal@13841 58 EOT
pascal@4478 59 }
pascal@4478 60