wok-next view grub4dos/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | d1c17bd2c2bc |
children | a7b1395df64a |
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 WEB_SITE="https://gna.org/projects/grub4dos/"
11 TARBALL="$PACKAGE-$VERSION-src.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION-src.zip"
14 BUILD_DEPENDS="lzma gcc3"
15 SPLIT="grub4dos-linux"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 for i in $stuff/*.diff ; do
21 [ -f $(basename $i) ] && continue
22 patch -p1 < $i
23 touch $(basename $i)
24 done
25 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
26 util/grub-install.in
27 sh ./configure CC=gcc-3 \
28 --enable-preset-menu=$stuff/menu.lst \
29 --without-curses \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/boot \
38 $fs/usr/bin
40 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
41 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
43 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
44 chmod +x $fs/usr/bin/bootlace
45 # Skip hmload.com badgrub.exe grldr.mbr
46 }