wok annotate grub4dos/receipt @ rev 10331

frei0r-plugins: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 22 01:09:14 2011 +0000 (2011-05-22)
parents 6a0e0cf4c95a
children 591ce1ef5cb6
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
slaxemulator@9700 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 \
slaxemulator@9700 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 }