wok view 8086tiny/receipt @ rev 19113
Add murrine-themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 07 05:31:47 2016 +0300 (2016-05-07) |
parents | 70416dacfe5f |
children | a7a9bd1b47f4 |
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"
13 TAGS="emulator 8086"
15 DEPENDS="libsdl"
16 BUILD_DEPENDS="libsdl-dev nasm"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm*) BUILD_DEPENDS="libsdl-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 case "$ARCH" in
27 i?86)
28 make CC=gcc no_graphics &&
29 mv 8086tiny 8086tiny.nographics &&
30 make CC=gcc &&
31 nasm bios_source/bios.asm ;;
32 arm*)
33 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
34 nasm bios_source/bios.asm &&
35 echo "Skipping: strip: Unable to recognise the format" ;;
36 esac
37 }
39 # SliTaz package testsuite
40 testsuite() {
41 readelf -Ah ${src}/8086tiny
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
48 cp -a $src/8086tiny $fs/usr/bin
49 [ -x "$src/8086tiny.nographics" ] && \
50 cp -a $src/8086tiny.nographics $fs/usr/bin
51 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
52 cat > $fs/usr/bin/8086tiny.sh <<EOT
53 #!/bin/sh
55 if [ ! -e "\$1" ]; then
56 echo "Usage: \$0 fd_image [hd_image]"
57 else
58 clear
59 stty cbreak raw -echo min 0
60 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
61 stty cooked echo
62 fi
63 EOT
64 chmod 755 $fs/usr/bin/8086tiny.sh
65 }