wok-current view grub4dos/receipt @ rev 25523
created recipes for libvterm and libvterm-dev 0.3
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:17:00 2023 +0100 (22 months ago) |
parents | 7dd01dedad38 |
children | e53dd413c6de |
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 gcc3 binutils"
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|.*href="|"https://sourceforge.net|;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 sh ./configure CC=gcc-3 \
37 --enable-preset-menu=$stuff/menu.lst \
38 --without-curses \
39 $CONFIGURE_ARGS &&
40 make -j 1 && make -j 1 install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/boot \
47 $fs/usr/bin
49 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
50 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
52 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
53 chmod +x $fs/usr/bin/bootlace
54 # Skip hmload.com badgrub.exe grldr.mbr
55 }