wok-next view grub4dos/receipt @ rev 9497

grub4dos: add splash image
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 06 03:26:48 2011 +0200 (2011-04-06)
parents d57dbb91c2c5
children 6a0e0cf4c95a
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 $fs/boot/grub
36 lzma e $_pkg/usr/lib/grub/i386-pc/grub.exe \
37 $fs/usr/share/boot/grub.exe.lzma
38 lzma e $_pkg/usr/lib/grub/i386-pc/grldr $fs/usr/share/boot/grldr.lzma
39 cp $_pkg/usr/lib/grub/i386-pc/bootlace.com $fs/usr/bin/bootlace
40 chmod +x $fs/usr/bin/bootlace
41 # Skip hmload.com badgrub.exe grldr.mbr
42 cp -a stuff/splash.xpm.gz $fs/boot/grub
43 }