wok view grub4dos/receipt @ rev 12467
Up: openbox (3.5.0) Incon in menu and a bunch of changes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 22 19:49:37 2012 +0200 (2012-04-22) |
parents | 591ce1ef5cb6 |
children | d1c17bd2c2bc |
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"
12 BUILD_DEPENDS="lzma gcc3"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 for i in $stuff/*.diff ; do
19 [ -f $(basename $i) ] && continue
20 patch -p1 < $i
21 touch $(basename $i)
22 done
23 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
24 util/grub-install.in
25 sh ./configure CC=gcc-3 \
26 --enable-preset-menu=$stuff/menu.lst \
27 --without-curses \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/boot \
36 $fs/usr/bin
38 lzma e $_pkg/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
39 lzma e $_pkg/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
41 cp $_pkg/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
42 chmod +x $fs/usr/bin/bootlace
43 # Skip hmload.com badgrub.exe grldr.mbr
44 }