wok-current view linld/receipt @ rev 19267
Compress manpages.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 04 11:45:47 2016 +0300 (2016-07-04) |
parents | 347588653a93 |
children | 3cf96e8a94d7 |
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 patch -p0 < $stuff/jump.u
23 sed -i 's/^@pause/rem &/' LINLD097/*.BAT
24 unix2dos > MAKE.BAT <<EOT
25 d:
26 cd linld097
27 !compile.bat
28 EOT
29 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src"
30 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
31 objcopy -O binary tobzimage.o tobzimage.bin
32 cp $stuff/tobzimage .
33 ./tobzimage --build
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/boot $fs/usr/bin
40 cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \
41 $fs/usr/share/boot/linld.com
42 cp $stuff/linld.txt $fs/usr/share/boot/
43 cp $src/tobzimage $fs/usr/bin
44 }