wok annotate grub4dos/receipt @ rev 25620
Up youtube-dl (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 30 10:53:19 2023 +0000 (14 months ago) |
parents | 7303172dab0d |
children |
rev | line source |
---|---|
pascal@1726 | 1 # SliTaz package receipt. |
pascal@1726 | 2 |
pascal@1726 | 3 PACKAGE="grub4dos" |
pascal@4396 | 4 VERSION="0.4.4" |
pascal@1726 | 5 CATEGORY="system-tools" |
pascal@1726 | 6 SHORT_DESC="Some enhancments of grub boot loader." |
pascal@1726 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15589 | 8 LICENSE="GPL2" |
pascal@6240 | 9 TARBALL="$PACKAGE-$VERSION-src.zip" |
pascal@25460 | 10 WEB_SITE="https://grub4dos.sourceforge.net/" |
pascal@1726 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@10434 | 12 |
shann@25579 | 13 BUILD_DEPENDS="lzma gcc49 binutils223" |
pascal@1726 | 14 |
pascal@24403 | 15 # What is the latest version available today? |
pascal@24403 | 16 current_version() |
pascal@24403 | 17 { |
pascal@24403 | 18 wget -O - https://sourceforge.net/projects/grub4dos/files/GRUB4DOS/ 2>/dev/null | \ |
pascal@25605 | 19 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24403 | 20 sed '/scope="row/!d;s|.*%20||;s|/.*||;q' |
pascal@24403 | 21 } |
pascal@24403 | 22 |
pascal@6240 | 23 # Rules to configure and make the package. |
pascal@6240 | 24 compile_rules() |
pascal@6240 | 25 { |
slaxemulator@9700 | 26 for i in $stuff/*.diff ; do |
pascal@7806 | 27 [ -f $(basename $i) ] && continue |
pascal@7806 | 28 patch -p1 < $i |
pascal@7806 | 29 touch $(basename $i) |
pascal@7806 | 30 done |
pascal@12235 | 31 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ |
pascal@12235 | 32 util/grub-install.in |
pascal@23895 | 33 sed -i 's|-O binary conftest|--only-section=.text &|' acinclude.m4 configure |
pascal@25505 | 34 sed -i 's|-O binary |&-R .note -R .comment -R .note.gnu.build-id |' stage?/Makefile* |
pascal@25065 | 35 sed -i 's|-Wl,-Ttext|-Wl,--section-start=.note.gnu.property=1000 &|' stage2/Makefile* |
shann@25579 | 36 # Use -fno-reorder-functions to avoid Segment fault with gcc >= 4.6 |
shann@25579 | 37 sh ./configure CC=gcc-49 \ |
shann@25579 | 38 CFLAGS="-march=i486 -Os -pipe -fno-reorder-functions" \ |
pankso@10434 | 39 --enable-preset-menu=$stuff/menu.lst \ |
pankso@10434 | 40 --without-curses \ |
pascal@6240 | 41 $CONFIGURE_ARGS && |
pascal@23896 | 42 make -j 1 && make -j 1 install |
pascal@6240 | 43 } |
pascal@6240 | 44 |
pascal@1726 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1726 | 46 genpkg_rules() |
pascal@1726 | 47 { |
pankso@9497 | 48 mkdir -p $fs/usr/share/boot \ |
pankso@10434 | 49 $fs/usr/bin |
pankso@10434 | 50 |
pascal@15589 | 51 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma |
pascal@15589 | 52 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma |
pankso@10434 | 53 |
pascal@15589 | 54 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace |
pascal@1729 | 55 chmod +x $fs/usr/bin/bootlace |
pascal@6240 | 56 # Skip hmload.com badgrub.exe grldr.mbr |
pascal@1726 | 57 } |