wok-4.x annotate grub4dos/receipt @ rev 9573

Up: lilo to 23.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Apr 11 23:54:29 2011 +0000 (2011-04-11)
parents c08cda6805e8
children d1768332cee0
rev   line source
pascal@1726 1 # SliTaz package receipt.
pascal@1726 2
pascal@1726 3 PACKAGE="grub4dos"
pascal@4396 4 VERSION="0.4.4"
pascal@1726 5 CATEGORY="system-tools"
pascal@1726 6 SHORT_DESC="Some enhancments of grub boot loader."
pascal@1726 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@6240 8 TARBALL="$PACKAGE-$VERSION-src.zip"
pascal@1726 9 WEB_SITE="http://grub4dos.sourceforge.net/"
pascal@1726 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@1726 11 BUILD_DEPENDS="lzma"
pascal@1726 12
pascal@6240 13 # Rules to configure and make the package.
pascal@6240 14 compile_rules()
pascal@6240 15 {
pascal@6240 16 cd $src
pascal@7806 17 for i in ../stuff/*.diff ; do
pascal@7806 18 [ -f $(basename $i) ] && continue
pascal@7806 19 patch -p1 < $i
pascal@7806 20 touch $(basename $i)
pascal@7806 21 done
pascal@6240 22 sh ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@7808 23 --enable-preset-menu=../stuff/menu.lst \
pascal@6240 24 --without-curses --mandir=/usr/share/man \
pascal@6240 25 $CONFIGURE_ARGS &&
pascal@6240 26 make &&
pascal@6240 27 make DESTDIR=$PWD/_pkg install
pascal@6240 28 }
pascal@6240 29
pascal@1726 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1726 31 genpkg_rules()
pascal@1726 32 {
pankso@9497 33 mkdir -p $fs/usr/share/boot \
pankso@9499 34 $fs/usr/bin
pascal@6240 35 lzma e $_pkg/usr/lib/grub/i386-pc/grub.exe \
pascal@6240 36 $fs/usr/share/boot/grub.exe.lzma
pascal@6240 37 lzma e $_pkg/usr/lib/grub/i386-pc/grldr $fs/usr/share/boot/grldr.lzma
pascal@6240 38 cp $_pkg/usr/lib/grub/i386-pc/bootlace.com $fs/usr/bin/bootlace
pascal@1729 39 chmod +x $fs/usr/bin/bootlace
pascal@6240 40 # Skip hmload.com badgrub.exe grldr.mbr
pascal@1726 41 }