wok annotate grub4dos/receipt @ rev 14425

enlightenment-pam: update deps+bdeps
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 21:25:42 2013 +0200 (2013-04-23)
parents 591ce1ef5cb6
children d1c17bd2c2bc
rev   line source
pascal@1726 1 # SliTaz package receipt.
pascal@1726 2
pascal@1726 3 PACKAGE="grub4dos"
pascal@4396 4 VERSION="0.4.4"
pascal@1726 5 CATEGORY="system-tools"
pascal@1726 6 SHORT_DESC="Some enhancments of grub boot loader."
pascal@1726 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@6240 8 TARBALL="$PACKAGE-$VERSION-src.zip"
pascal@1726 9 WEB_SITE="http://grub4dos.sourceforge.net/"
pascal@1726 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@10434 11
pascal@12235 12 BUILD_DEPENDS="lzma gcc3"
pascal@1726 13
pascal@6240 14 # Rules to configure and make the package.
pascal@6240 15 compile_rules()
pascal@6240 16 {
pascal@6240 17 cd $src
slaxemulator@9700 18 for i in $stuff/*.diff ; do
pascal@7806 19 [ -f $(basename $i) ] && continue
pascal@7806 20 patch -p1 < $i
pascal@7806 21 touch $(basename $i)
pascal@7806 22 done
pascal@12235 23 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
pascal@12235 24 util/grub-install.in
pascal@12235 25 sh ./configure CC=gcc-3 \
pankso@10434 26 --enable-preset-menu=$stuff/menu.lst \
pankso@10434 27 --without-curses \
pascal@6240 28 $CONFIGURE_ARGS &&
pankso@10434 29 make && make install
pascal@6240 30 }
pascal@6240 31
pascal@1726 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1726 33 genpkg_rules()
pascal@1726 34 {
pankso@9497 35 mkdir -p $fs/usr/share/boot \
pankso@10434 36 $fs/usr/bin
pankso@10434 37
pankso@10434 38 lzma e $_pkg/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma
pankso@10434 39 lzma e $_pkg/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma
pankso@10434 40
pankso@10434 41 cp $_pkg/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace
pascal@1729 42 chmod +x $fs/usr/bin/bootlace
pascal@6240 43 # Skip hmload.com badgrub.exe grldr.mbr
pascal@1726 44 }