wok-next annotate 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 |
rev | line source |
---|---|
al@20459 | 1 # SliTaz package receipt v2. |
pascal@1726 | 2 |
pascal@1726 | 3 PACKAGE="grub4dos" |
pascal@4396 | 4 VERSION="0.4.4" |
pascal@1726 | 5 CATEGORY="system-tools" |
al@20459 | 6 SHORT_DESC="Some enhancments of grub boot loader" |
pascal@1726 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15589 | 8 LICENSE="GPL2" |
al@20906 | 9 WEB_SITE="https://github.com/chenall/grub4dos" |
al@19601 | 10 |
pascal@6240 | 11 TARBALL="$PACKAGE-$VERSION-src.zip" |
al@19601 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION-src.zip" |
pankso@10434 | 13 |
pascal@12235 | 14 BUILD_DEPENDS="lzma gcc3" |
al@21020 | 15 SPLIT="$PACKAGE-linux" |
pascal@1726 | 16 |
al@20459 | 17 compile_rules() { |
pascal@12235 | 18 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ |
pascal@12235 | 19 util/grub-install.in |
al@21020 | 20 |
al@21020 | 21 sh ./configure \ |
al@21020 | 22 CC=gcc-3 \ |
al@21020 | 23 CFLAGS="-march=i486 -Os -pipe" \ |
pankso@10434 | 24 --enable-preset-menu=$stuff/menu.lst \ |
pankso@10434 | 25 --without-curses \ |
al@21020 | 26 $CONFIGURE_ARGS && |
al@21020 | 27 make && |
al@21020 | 28 make install |
pascal@6240 | 29 } |
pascal@6240 | 30 |
al@20459 | 31 genpkg_rules() { |
al@20459 | 32 case $PACKAGE in |
al@20459 | 33 grub4dos) |
al@20459 | 34 mkdir -p $fs/usr/share/boot \ |
al@20459 | 35 $fs/usr/bin |
al@20459 | 36 |
al@20459 | 37 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma |
al@20459 | 38 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma |
al@20459 | 39 |
al@20459 | 40 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace |
al@20459 | 41 chmod +x $fs/usr/bin/bootlace |
al@20459 | 42 # Skip hmload.com badgrub.exe grldr.mbr |
al@20459 | 43 ;; |
al@20459 | 44 grub4dos-linux) |
al@20459 | 45 libarch=$(basename `ls $install/usr/lib/grub`) |
al@20459 | 46 mkdir -p $fs/usr/lib/grub/$libarch |
al@20459 | 47 cp -a $install/usr/bin $fs/usr |
al@20459 | 48 cp -a $install/usr/sbin $fs/usr |
al@20459 | 49 cp -a $install/usr/lib/grub/$libarch/*stage* \ |
al@20459 | 50 $fs/usr/lib/grub/$libarch |
al@20459 | 51 CAT="system-tools|linux files" |
al@20459 | 52 PROVIDE="grub" |
al@20459 | 53 ;; |
al@20459 | 54 esac |
pascal@1726 | 55 } |