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