wok view grub4dos/receipt @ rev 19184
Up slitaz-tools(992)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 04 14:08:33 2016 +0300 (2016-06-04) |
parents | a7288c2607d3 |
children | 800de22df35e |
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 }