wok-current annotate grub4dos/receipt @ rev 7806
grub4dos-linux: apply grub legacy patches
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 24 17:06:42 2010 +0100 (2010-12-24) |
parents | 18c63bd0a181 |
children | d57dbb91c2c5 |
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@6240 | 23 --without-curses --mandir=/usr/share/man \ |
pascal@6240 | 24 $CONFIGURE_ARGS && |
pascal@6240 | 25 make && |
pascal@6240 | 26 make DESTDIR=$PWD/_pkg install |
pascal@6240 | 27 } |
pascal@6240 | 28 |
pascal@1726 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1726 | 30 genpkg_rules() |
pascal@1726 | 31 { |
pascal@1729 | 32 mkdir -p $fs/usr/share/boot $fs/usr/bin |
pascal@6240 | 33 lzma e $_pkg/usr/lib/grub/i386-pc/grub.exe \ |
pascal@6240 | 34 $fs/usr/share/boot/grub.exe.lzma |
pascal@6240 | 35 lzma e $_pkg/usr/lib/grub/i386-pc/grldr $fs/usr/share/boot/grldr.lzma |
pascal@6240 | 36 cp $_pkg/usr/lib/grub/i386-pc/bootlace.com $fs/usr/bin/bootlace |
pascal@1729 | 37 chmod +x $fs/usr/bin/bootlace |
pascal@6240 | 38 # Skip hmload.com badgrub.exe grldr.mbr |
pascal@1726 | 39 } |