wok-current view linld/receipt @ rev 18228
linld: add tobzimage
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 23 09:44:18 2015 +0200 (2015-07-23) |
parents | ab69381ebbcc |
children | 347588653a93 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linld"
4 VERSION="0.97"
5 CATEGORY="system-tools"
6 SHORT_DESC="Boot loader for DOS/Win9x."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="${PACKAGE}$(echo $VERSION | sed 's/[^0-9]//')devel.tar.bz2"
10 BASE_SITE="http://busybox.net/~vda/$PACKAGE"
11 WEB_SITE="$BASE_SITE/README.txt"
12 WGET_URL="$BASE_SITE/$TARBALL"
14 BUILD_DEPENDS="dosbox"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mv DIST $src 2> /dev/null
20 cd $src
21 patch -p0 < $stuff/load.u
22 sed -i 's/^@pause/rem &/' LINLD097/*.BAT
23 unix2dos > MAKE.BAT <<EOT
24 d:
25 cd linld097
26 !compile.bat
27 EOT
28 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src"
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/boot $fs/usr/bin
35 cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \
36 $fs/usr/share/boot/linld.com
37 cp $stuff/linld.txt $fs/usr/share/boot/
38 cp $stuff/tobzimage $fs/usr/bin
39 }