wok-6.x view linld/receipt @ rev 19443
mc: change icons
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 14 15:16:13 2016 +0300 (2016-10-14) |
parents | 3cf96e8a94d7 |
children | 1c458fa173fb |
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 SUFFIX="$(echo $VERSION | sed 's/[^0-9]//')"
10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
11 BASE_SITE="http://busybox.net/~vda/$PACKAGE"
12 WEB_SITE="$BASE_SITE/README.txt"
13 WGET_URL="$BASE_SITE/$TARBALL"
15 BUILD_DEPENDS="dosbox upx"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv DIST $src 2> /dev/null
21 cd $src
22 patch -p0 < $stuff/load.u
23 patch -p0 < $stuff/jump.u
24 sed -i 's/^@pause/rem &/' LINLD$SUFFIX/*.BAT
25 unix2dos > MAKE.BAT <<EOT
26 d:
27 cd linld$SUFFIX
28 !compile.bat
29 EOT
30 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src"
31 cp LINLD$SUFFIX/LINLD.COM linld.com
32 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
33 linld.com > linld.lst
34 upx linld.com
35 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
36 objcopy -O binary tobzimage.o tobzimage.bin
37 cp $stuff/tobzimage .
38 ./tobzimage --build
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/boot $fs/usr/bin
45 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
46 cp $src/tobzimage $fs/usr/bin
47 }