wok-next view grub4dos/receipt @ rev 20939

Fix brisk-menu, mate-backgrounds, mate-user-guide
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 26 09:13:55 2018 +0300 (2018-08-26)
parents d6378d455338
children d5aab818505e
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="grub4dos-linux"
17 compile_rules() {
18 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
19 util/grub-install.in
20 sh ./configure CC=gcc-3 CFLAGS="-march=i486 -Os -pipe" \
21 --enable-preset-menu=$stuff/menu.lst \
22 --without-curses \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 grub4dos)
30 mkdir -p $fs/usr/share/boot \
31 $fs/usr/bin
33 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
34 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
36 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
37 chmod +x $fs/usr/bin/bootlace
38 # Skip hmload.com badgrub.exe grldr.mbr
39 ;;
40 grub4dos-linux)
41 libarch=$(basename `ls $install/usr/lib/grub`)
42 mkdir -p $fs/usr/lib/grub/$libarch
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/lib/grub/$libarch/*stage* \
46 $fs/usr/lib/grub/$libarch
47 CAT="system-tools|linux files"
48 PROVIDE="grub"
49 ;;
50 esac
51 }