wok-next view 8086tiny/receipt @ rev 15972
Up dropbear (2014.63)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 28 15:13:09 2014 +0000 (2014-02-28) |
parents | 93337e127536 |
children | e42fcb3f39be |
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.20"
5 CATEGORY="system-tools"
6 SHORT_DESC="PC XT-compatible emulator/virtual machine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
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 make CC=gcc no_graphics &&
20 mv 8086tiny 8086tiny.nographics &&
21 make CC=gcc &&
22 nasm bios_source/bios.asm
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
29 cp -a $src/8086tiny $fs/usr/bin
30 cp -a $src/8086tiny.nographics $fs/usr/bin
31 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
32 cat > $fs/usr/bin//8086tiny.sh <<EOT
33 #!/bin/sh
35 if [ ! -e "\$1" ]; then
36 echo "Usage: \$0 fd_image [hd_image]"
37 else
38 clear
39 stty cbreak raw -echo min 0
40 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
41 stty cooked echo
42 fi
43 EOT
44 chmod 755 $fs/usr/bin/8086tiny.sh
45 }