wok annotate grub2/receipt @ rev 13710

get-OpenOffice3: small fixes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 20:32:43 2012 +0100 (2012-12-17)
parents 29cc51bc1716
children 24d193656599
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@13114 9 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@13115 10 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
pascal@13115 11 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
pascal@13115 12 libusb-compat-dev libusb-dev libdevmapper-dev"
pascal@4478 13 WEB_SITE="http://www.gnu.org/software/grub/"
pascal@13114 14 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
pascal@4478 15
pascal@4478 16 # Rules to configure and make the package.
pascal@4478 17 compile_rules()
pascal@4478 18 {
pascal@4478 19 cd $src
pascal@13386 20
pascal@13386 21 # Fixes for flex 2.5.37
pascal@13386 22 export CFLAGS="-Wno-error=sign-compare"
pascal@13386 23 sed -i 's/YY_FATAL_ERROR/REMOVED_&/' grub-core/script/yylex.l
pascal@13386 24
pascal@4480 25 chmod +x install-sh
pascal@4478 26 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@4478 27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@4478 28 make &&
pascal@13114 29 make DESTDIR=$DESTDIR install
pascal@4478 30 }
pascal@4478 31
pascal@4478 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 33 genpkg_rules()
pascal@4478 34 {
pascal@4478 35 mkdir -p $fs/boot/grub $fs/usr
pascal@4478 36 cp -a $_pkg/usr/bin $fs/usr
pascal@4478 37 cp -a $_pkg/usr/sbin $fs/usr
pascal@4478 38 cp -a $_pkg/usr/lib $fs/usr
pascal@4478 39 cp -a $_pkg/etc $fs
pascal@4478 40
pascal@4478 41 # Example config file (grub.cfg).
pascal@4478 42 cp stuff/example-grub.cfg $fs/boot/grub
pascal@4478 43 }
pascal@4478 44