wok-next diff 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 |
line diff
1.1 --- a/8086tiny/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/8086tiny/receipt Tue May 01 16:03:13 2018 +0300 1.3 @@ -1,64 +1,48 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="8086tiny" 1.8 VERSION="1.25" 1.9 +COMMIT="c79ca2a" # no releases there in Github 1.10 CATEGORY="system-tools" 1.11 -SHORT_DESC="PC XT-compatible emulator/virtual machine." 1.12 +SHORT_DESC="PC XT-compatible emulator/virtual machine" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="MIT" 1.15 -TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2" 1.16 -WEB_SITE="http://www.megalith.co.uk/8086tiny" 1.17 -WGET_URL="$WEB_SITE/downloads/$TARBALL" 1.18 -TAGS="emulator 8086" 1.19 +WEB_SITE="https://github.com/adriancable/8086tiny" 1.20 1.21 -DEPENDS="libsdl" 1.22 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.23 +WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" 1.24 + 1.25 +BUILD_DEPENDS_arm="libsdl-dev" 1.26 BUILD_DEPENDS="libsdl-dev nasm" 1.27 1.28 -# Handle cross compilation. 1.29 -case "$ARCH" in 1.30 - arm*) BUILD_DEPENDS="libsdl-dev" ;; 1.31 -esac 1.32 - 1.33 -# Rules to configure and make the package. 1.34 -compile_rules() 1.35 -{ 1.36 +compile_rules() { 1.37 case "$ARCH" in 1.38 - i?86) 1.39 + arm*) 1.40 + make CC=$HOST_SYSTEM-gcc 8086tiny_slowcpu 1.41 + nasm bios_source/bios.asm && 1.42 + echo "Skipping: strip: Unable to recognise the format" 1.43 + ;; 1.44 + *) 1.45 make CC=gcc no_graphics && 1.46 mv 8086tiny 8086tiny.nographics && 1.47 make CC=gcc && 1.48 - nasm bios_source/bios.asm ;; 1.49 - arm*) 1.50 - make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu 1.51 - nasm bios_source/bios.asm && 1.52 - echo "Skipping: strip: Unable to recognise the format" ;; 1.53 - esac 1.54 + nasm bios_source/bios.asm 1.55 + ;; 1.56 + esac || return 1 1.57 + 1.58 + install -Dm755 $src/8086tiny $install/usr/bin/8086tiny 1.59 + [ -x "$src/8086tiny.nographics" ] && 1.60 + install -Dm755 $src/8086tiny.nographics $install/usr/bin/8086tiny.nographics 1.61 + install -Dm755 $stuff/8086tiny.sh $install/usr/bin/8086tiny.sh 1.62 + install -Dm644 $src/bios_source/bios $install/usr/share/8086tiny/bios 1.63 } 1.64 1.65 -# SliTaz package testsuite 1.66 testsuite() { 1.67 - readelf -Ah ${src}/8086tiny 1.68 + readelf -Ah $src/8086tiny 1.69 } 1.70 1.71 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.72 -genpkg_rules() 1.73 -{ 1.74 - mkdir -p $fs/usr/bin $fs/usr/share/8086tiny 1.75 - cp -a $src/8086tiny $fs/usr/bin 1.76 - [ -x "$src/8086tiny.nographics" ] && \ 1.77 - cp -a $src/8086tiny.nographics $fs/usr/bin 1.78 - cp -a $src/bios_source/bios $fs/usr/share/8086tiny 1.79 - cat > $fs/usr/bin/8086tiny.sh <<EOT 1.80 -#!/bin/sh 1.81 - 1.82 -if [ ! -e "\$1" ]; then 1.83 - echo "Usage: \$0 fd_image [hd_image]" 1.84 -else 1.85 - clear 1.86 - stty cbreak raw -echo min 0 1.87 - \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@" 1.88 - stty cooked echo 1.89 -fi 1.90 -EOT 1.91 - chmod 755 $fs/usr/bin/8086tiny.sh 1.92 +genpkg_rules() { 1.93 + copy @std 1.94 + DEPENDS="libsdl" 1.95 + TAGS="emulator 8086" 1.96 }