wok-4.x view grub4dos/receipt @ rev 12477

Up openssl 1.1.1n (bump packages curl, git, wget, python), up cherokee 1.2.104 and bdeps (automake, openldap, cyrus-sasl)
author Stanislas Leduc <shann@slitaz.org>
date Sun Apr 02 14:34:44 2023 +0000 (14 months ago)
parents a7288c2607d3
children
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"
12 BUILD_DEPENDS="lzma"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
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 # Use -fno-reorder-functions to avoid Segment fault with gcc >= 4.6
26 sh ./configure \
27 CFLAGS="-march=i486 -Os -pipe -fno-reorder-functions" \
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 $_pkg/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
41 lzma e $_pkg/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
43 cp $_pkg/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 }