wok annotate grub4dos/receipt @ rev 8012

Slitaz: Sources tarballs are back on mirror.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Jan 19 16:53:00 2011 +0100 (2011-01-19)
parents 5af4ef0cffa1
children c08cda6805e8
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 {
pascal@1729 33 mkdir -p $fs/usr/share/boot $fs/usr/bin
pascal@6240 34 lzma e $_pkg/usr/lib/grub/i386-pc/grub.exe \
pascal@6240 35 $fs/usr/share/boot/grub.exe.lzma
pascal@6240 36 lzma e $_pkg/usr/lib/grub/i386-pc/grldr $fs/usr/share/boot/grldr.lzma
pascal@6240 37 cp $_pkg/usr/lib/grub/i386-pc/bootlace.com $fs/usr/bin/bootlace
pascal@1729 38 chmod +x $fs/usr/bin/bootlace
pascal@6240 39 # Skip hmload.com badgrub.exe grldr.mbr
pascal@1726 40 }