wok-next view grub4dos/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="https://github.com/chenall/grub4dos"
11 TARBALL="$PACKAGE-$VERSION-src.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION-src.zip"
14 BUILD_DEPENDS="lzma"
15 SPLIT="$PACKAGE-linux"
17 compile_rules()
18 {
19 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
20 util/grub-install.in
22 sh ./configure \
23 CFLAGS="-march=i486 -Os -pipe" \
24 --enable-preset-menu=$stuff/menu.lst \
25 --without-curses \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 genpkg_rules()
32 {
33 case $PACKAGE in
34 grub4dos)
35 mkdir -p $fs/usr/share/boot
36 mkdir -p $fs/usr/bin
38 lzma e $install/usr/lib/grub/*/grub.exe \
39 $fs/usr/share/boot/grub.exe.lzma
40 lzma e $install/usr/lib/grub/*/grldr \
41 $fs/usr/share/boot/grldr.lzma
43 cp $install/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 ;;
47 grub4dos-linux)
48 libarch=$(basename `ls $install/usr/lib/grub`)
50 mkdir -p $fs/usr/lib/grub/$libarch
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/grub/$libarch/*stage* \
55 $fs/usr/lib/grub/$libarch
56 CAT="system-tools|linux files"
57 PROVIDE="grub"
58 ;;
59 esac
60 }