wok-6.x view 8086tiny/receipt @ rev 15878

tinc: fix config path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 05 10:25:27 2014 +0000 (2014-02-05)
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 }