wok-next view 8086tiny/receipt @ rev 20875
Fix bastet, cherokee
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 06 12:59:08 2018 +0300 (2018-07-06) |
parents | c4e53a39395a |
children | d2950281f122 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="8086tiny"
4 VERSION="1.25"
5 COMMIT="c79ca2a" # no releases there in Github
6 CATEGORY="system-tools"
7 SHORT_DESC="PC XT-compatible emulator/virtual machine"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/adriancable/8086tiny"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz"
15 BUILD_DEPENDS_arm="libsdl-dev"
16 BUILD_DEPENDS="libsdl-dev nasm"
18 compile_rules() {
19 case "$ARCH" in
20 arm*)
21 make CC=$HOST_SYSTEM-gcc 8086tiny_slowcpu
22 nasm bios_source/bios.asm &&
23 echo "Skipping: strip: Unable to recognise the format"
24 ;;
25 *)
26 make CC=gcc no_graphics &&
27 mv 8086tiny 8086tiny.nographics &&
28 make CC=gcc &&
29 nasm bios_source/bios.asm
30 ;;
31 esac || return 1
33 install -Dm755 $src/8086tiny $install/usr/bin/8086tiny
34 [ -x "$src/8086tiny.nographics" ] &&
35 install -Dm755 $src/8086tiny.nographics $install/usr/bin/8086tiny.nographics
36 install -Dm755 $stuff/8086tiny.sh $install/usr/bin/8086tiny.sh
37 install -Dm644 $src/bios_source/bios $install/usr/share/8086tiny/bios
38 }
40 testsuite() {
41 readelf -Ah $src/8086tiny
42 }
44 genpkg_rules() {
45 copy @std
46 DEPENDS="libsdl"
47 TAGS="emulator 8086"
48 }