wok annotate grub2/receipt @ rev 4478

Add grub2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 11 23:16:28 2009 +0100 (2009-11-11)
parents
children 19b8908aeeca
rev   line source
pascal@4478 1 # SliTaz package receipt.
pascal@4478 2
pascal@4478 3 PACKAGE="grub2"
pascal@4478 4 SOURCE="grub"
pascal@4478 5 VERSION="1.97"
pascal@4478 6 CATEGORY="base-system"
pascal@4478 7 SHORT_DESC="GRUB2 boot loader."
pascal@4478 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4478 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@4478 10 DEPENDS="zlib freetype ncurses libusb-compat libusb"
pascal@4478 11 BUILD_DEPENDS="zlib-dev freetype-dev ncurses-dev libusb-compat-dev libusb-dev"
pascal@4478 12 WEB_SITE="http://www.gnu.org/software/grub/"
pascal@4478 13 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
pascal@4478 14
pascal@4478 15 # Rules to configure and make the package.
pascal@4478 16 compile_rules()
pascal@4478 17 {
pascal@4478 18 cd $src
pascal@4478 19 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@4478 20 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@4478 21 make &&
pascal@4478 22 make DESTDIR=$PWD/_pkg install
pascal@4478 23 }
pascal@4478 24
pascal@4478 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 26 genpkg_rules()
pascal@4478 27 {
pascal@4478 28 mkdir -p $fs/boot/grub $fs/usr
pascal@4478 29 cp -a $_pkg/usr/bin $fs/usr
pascal@4478 30 cp -a $_pkg/usr/sbin $fs/usr
pascal@4478 31 cp -a $_pkg/usr/lib $fs/usr
pascal@4478 32 cp -a $_pkg/etc $fs
pascal@4478 33
pascal@4478 34 # Example config file (grub.cfg).
pascal@4478 35 cp stuff/example-grub.cfg $fs/boot/grub
pascal@4478 36 }
pascal@4478 37