wok view grub4dos/receipt @ rev 14933

Up: evas-dev (1.7.8)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:15:38 2013 +0200 (2013-08-08)
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 }