wok-current view 8086tiny/receipt @ rev 16175
pango: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 30 17:08:09 2014 +0200 (2014-03-30) |
parents | e42fcb3f39be |
children | 7488364630bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.25"
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"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libsdl"
15 BUILD_DEPENDS="nasm libsdl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make CC=gcc no_graphics &&
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 }