wok view grub4dos/receipt @ rev 24226

updated perl-io-tty (1.14 -> 1.16)
author Hans-G?nter Theisgen
date Fri Dec 31 17:52:39 2021 +0100 (2021-12-31)
parents a27bbec045be
children 932cd974e081
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 binutils"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
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 sed -i 's|-O binary conftest|--only-section=.text &|' acinclude.m4 configure
26 sed -i 's|-O binary |&-R .note -R .comment -R .note.gnu.build-id |' stage?/Makefile*
27 sh ./configure CC=gcc-3 \
28 --enable-preset-menu=$stuff/menu.lst \
29 --without-curses \
30 $CONFIGURE_ARGS &&
31 make -j 1 && make -j 1 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 }