wok-next view 8086tiny/receipt @ rev 15803

8086tiny: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 22 18:20:12 2014 +0100 (2014-01-22)
parents f625c58895bf
children c324508a40bf
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.00"
5 CATEGORY="system-tools"
6 SHORT_DESC="PC XT-compatible emulator/virtual machine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="CC-SA"
9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2"
10 WEB_SITE="http://www.megalith.co.uk/8086tiny"
11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
13 DEPENDS="libsdl"
14 BUILD_DEPENDS="nasm libsdl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/.*time.h/#include <stdio.h>\n&/' 8086tiny.c
20 sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics
21 make -f Makefile.nographics CC=gcc &&
22 mv 8086tiny 8086tiny.nographics &&
23 make CC=gcc &&
24 nasm bios_source/bios.asm
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
31 cp -a $src/8086tiny $fs/usr/bin
32 cp -a $src/8086tiny.nographics $fs/usr/bin
33 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
34 cat > $src/8086tiny.sh <<EOT
35 #!/bin/sh
37 clear
38 stty cbreak raw -echo min 0
39 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
40 stty cooked echo
41 EOT
42 chmod 755 $src/8086tiny.sh
43 }