# SliTaz package receipt. PACKAGE="grub4dos" VERSION="0.4.4" CATEGORY="system-tools" SHORT_DESC="Some enhancments of grub boot loader." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION-src.zip" WEB_SITE="http://grub4dos.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" BUILD_DEPENDS="lzma" # Rules to configure and make the package. compile_rules() { sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ util/grub-install.in sh ./configure \ CFLAGS="-march=i486 -Os -pipe" \ --enable-preset-menu=$stuff/menu.lst \ --without-curses \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/boot \ $fs/usr/bin lzma e $_pkg/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma lzma e $_pkg/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma cp $_pkg/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace chmod +x $fs/usr/bin/bootlace # Skip hmload.com badgrub.exe grldr.mbr }