wok view grub4dos/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 months ago) |
parents | 7303172dab0d |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.zip"
10 WEB_SITE="https://grub4dos.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="lzma gcc49 binutils223"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/grub4dos/files/GRUB4DOS/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*%20||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 for i in $stuff/*.diff ; do
27 [ -f $(basename $i) ] && continue
28 patch -p1 < $i
29 touch $(basename $i)
30 done
31 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
32 util/grub-install.in
33 sed -i 's|-O binary conftest|--only-section=.text &|' acinclude.m4 configure
34 sed -i 's|-O binary |&-R .note -R .comment -R .note.gnu.build-id |' stage?/Makefile*
35 sed -i 's|-Wl,-Ttext|-Wl,--section-start=.note.gnu.property=1000 &|' stage2/Makefile*
36 # Use -fno-reorder-functions to avoid Segment fault with gcc >= 4.6
37 sh ./configure CC=gcc-49 \
38 CFLAGS="-march=i486 -Os -pipe -fno-reorder-functions" \
39 --enable-preset-menu=$stuff/menu.lst \
40 --without-curses \
41 $CONFIGURE_ARGS &&
42 make -j 1 && make -j 1 install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/boot \
49 $fs/usr/bin
51 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
52 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
54 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
55 chmod +x $fs/usr/bin/bootlace
56 # Skip hmload.com badgrub.exe grldr.mbr
57 }