wok-6.x view linld/receipt @ rev 19413
Up firefox-official (49.0.1)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 24 15:30:02 2016 +0300 (2016-09-24) |
parents | 86c9fae82f47 |
children | 1dce8e8602f2 |
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 upx linld.com
33 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
34 objcopy -O binary tobzimage.o tobzimage.bin
35 cp $stuff/tobzimage .
36 ./tobzimage --build
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/boot $fs/usr/bin
43 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
44 cp $src/tobzimage $fs/usr/bin
45 }