wok-next view grub4dos/receipt @ rev 20529
Up libblockdev (2.16), nspr (4.18), openssh (7.6p1), udisks2 (2.7.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 15:55:55 2018 +0200 (2018-03-24) |
parents | 18c4d15a72df |
children | c6072d05ef86 |
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://gna.org/projects/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 for i in $stuff/*.diff ; do
19 [ -f $(basename $i) ] && continue
20 patch -p1 < $i
21 touch $(basename $i)
22 done
23 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
24 util/grub-install.in
25 sh ./configure CC=gcc-3 \
26 --enable-preset-menu=$stuff/menu.lst \
27 --without-curses \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 grub4dos)
35 mkdir -p $fs/usr/share/boot \
36 $fs/usr/bin
38 lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
39 lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
41 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
42 chmod +x $fs/usr/bin/bootlace
43 # Skip hmload.com badgrub.exe grldr.mbr
44 ;;
45 grub4dos-linux)
46 libarch=$(basename `ls $install/usr/lib/grub`)
47 mkdir -p $fs/usr/lib/grub/$libarch
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib/grub/$libarch/*stage* \
51 $fs/usr/lib/grub/$libarch
52 CAT="system-tools|linux files"
53 PROVIDE="grub"
54 ;;
55 esac
56 }