wok view 8086tiny/receipt @ rev 15851

Add inotify-tools (easy folder monitoring)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jan 27 22:02:29 2014 +0100 (2014-01-27)
parents c324508a40bf
children d0d74920c618
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.02"
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 sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics
20 make -f Makefile.nographics CC=gcc &&
21 mv 8086tiny 8086tiny.nographics &&
22 make CC=gcc &&
23 nasm bios_source/bios.asm
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
30 cp -a $src/8086tiny $fs/usr/bin
31 cp -a $src/8086tiny.nographics $fs/usr/bin
32 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
33 cat > $fs/usr/bin//8086tiny.sh <<EOT
34 #!/bin/sh
36 if [ ! -e "\$1" ]; then
37 echo "Usage: \$0 fd_image [hd_image]"
38 else
39 clear
40 stty cbreak raw -echo min 0
41 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
42 stty cooked echo
43 fi
44 EOT
45 chmod 755 $fs/usr/bin/8086tiny.sh
46 }