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