wok-current view grub4dos/receipt @ rev 24470
updated dbus, dbus-dev and dbus-helper (1.12.18 -> 1.12.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 14:54:20 2022 +0100 (2022-02-17) |
parents | c60adee9e733 |
children | 85fc2431322f |
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 # 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 sh ./configure CC=gcc-3 \
36 --enable-preset-menu=$stuff/menu.lst \
37 --without-curses \
38 $CONFIGURE_ARGS &&
39 make -j 1 && make -j 1 install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/boot \
46 $fs/usr/bin
48 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
49 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
51 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
52 chmod +x $fs/usr/bin/bootlace
53 # Skip hmload.com badgrub.exe grldr.mbr
54 }