wok-next view grub4dos/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a3c581bf52b8 |
children | 2fbd78e71ef2 |
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 gcc3"
15 SPLIT="$PACKAGE-linux"
17 compile_rules() {
18 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
19 util/grub-install.in
21 sh ./configure \
22 CC=gcc-3 \
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 case $PACKAGE in
33 grub4dos)
34 mkdir -p $fs/usr/share/boot \
35 $fs/usr/bin
37 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
38 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
40 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
41 chmod +x $fs/usr/bin/bootlace
42 # Skip hmload.com badgrub.exe grldr.mbr
43 ;;
44 grub4dos-linux)
45 libarch=$(basename `ls $install/usr/lib/grub`)
46 mkdir -p $fs/usr/lib/grub/$libarch
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/lib/grub/$libarch/*stage* \
50 $fs/usr/lib/grub/$libarch
51 CAT="system-tools|linux files"
52 PROVIDE="grub"
53 ;;
54 esac
55 }