wok-next view grub4dos/receipt @ rev 19039
Webian Shell - again
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Fri Apr 15 09:08:59 2016 -0300 (2016-04-15) |
parents | a7288c2607d3 |
children | 18c4d15a72df |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.zip"
10 WEB_SITE="http://grub4dos.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="lzma gcc3"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 for i in $stuff/*.diff ; do
20 [ -f $(basename $i) ] && continue
21 patch -p1 < $i
22 touch $(basename $i)
23 done
24 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
25 util/grub-install.in
26 sh ./configure CC=gcc-3 \
27 --enable-preset-menu=$stuff/menu.lst \
28 --without-curses \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/boot \
37 $fs/usr/bin
39 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
40 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
42 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
43 chmod +x $fs/usr/bin/bootlace
44 # Skip hmload.com badgrub.exe grldr.mbr
45 }