wok-next annotate grub4dos/receipt @ rev 10572
awesome: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 23:46:34 2011 +0200 (2011-05-25) |
parents | d1768332cee0 |
children | a7288c2607d3 |
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" |
pankso@10434 | 11 |
pascal@1726 | 12 BUILD_DEPENDS="lzma" |
pascal@1726 | 13 |
pascal@6240 | 14 # Rules to configure and make the package. |
pascal@6240 | 15 compile_rules() |
pascal@6240 | 16 { |
pascal@6240 | 17 cd $src |
slaxemulator@9700 | 18 for i in $stuff/*.diff ; do |
pascal@7806 | 19 [ -f $(basename $i) ] && continue |
pascal@7806 | 20 patch -p1 < $i |
pascal@7806 | 21 touch $(basename $i) |
pascal@7806 | 22 done |
pankso@10434 | 23 sh ./configure \ |
pankso@10434 | 24 --enable-preset-menu=$stuff/menu.lst \ |
pankso@10434 | 25 --without-curses \ |
pascal@6240 | 26 $CONFIGURE_ARGS && |
pankso@10434 | 27 make && make 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@10434 | 34 $fs/usr/bin |
pankso@10434 | 35 |
pankso@10434 | 36 lzma e $_pkg/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma |
pankso@10434 | 37 lzma e $_pkg/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma |
pankso@10434 | 38 |
pankso@10434 | 39 cp $_pkg/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace |
pascal@1729 | 40 chmod +x $fs/usr/bin/bootlace |
pascal@6240 | 41 # Skip hmload.com badgrub.exe grldr.mbr |
pascal@1726 | 42 } |