wok view linld/receipt @ rev 19034
Up firefox-official(45.0.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Apr 12 04:48:25 2016 +0300 (2016-04-12) |
parents | df58e6c974a3 |
children | 86c9fae82f47 |
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 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
30 objcopy -O binary tobzimage.o tobzimage.bin
31 cp $stuff/tobzimage .
32 ./tobzimage --build
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/boot $fs/usr/bin
39 cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \
40 $fs/usr/share/boot/linld.com
41 cp $stuff/linld.txt $fs/usr/share/boot/
42 cp $src/tobzimage $fs/usr/bin
43 }