wok-6.x annotate 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 |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@16166 | 4 VERSION="1.25" |
pascal@15802 | 5 CATEGORY="system-tools" |
pascal@15802 | 6 SHORT_DESC="PC XT-compatible emulator/virtual machine." |
pascal@15802 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15823 | 8 LICENSE="MIT" |
pascal@15802 | 9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2" |
pascal@15802 | 10 WEB_SITE="http://www.megalith.co.uk/8086tiny" |
pascal@15802 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@16175 | 12 HOST_ARCH="i486 arm" |
pascal@15802 | 13 |
pascal@15802 | 14 DEPENDS="libsdl" |
pascal@15802 | 15 BUILD_DEPENDS="nasm libsdl-dev" |
pascal@15802 | 16 |
pascal@15802 | 17 # Rules to configure and make the package. |
pascal@15802 | 18 compile_rules() |
pascal@15802 | 19 { |
pascal@15904 | 20 make CC=gcc no_graphics && |
pascal@15802 | 21 mv 8086tiny 8086tiny.nographics && |
pascal@15802 | 22 make CC=gcc && |
pascal@15802 | 23 nasm bios_source/bios.asm |
pascal@15802 | 24 } |
pascal@15802 | 25 |
pascal@15802 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 27 genpkg_rules() |
pascal@15802 | 28 { |
pascal@15802 | 29 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 30 cp -a $src/8086tiny $fs/usr/bin |
pascal@15802 | 31 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 32 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@15804 | 33 cat > $fs/usr/bin//8086tiny.sh <<EOT |
pascal@15802 | 34 #!/bin/sh |
pascal@15802 | 35 |
pascal@15823 | 36 if [ ! -e "\$1" ]; then |
pascal@15823 | 37 echo "Usage: \$0 fd_image [hd_image]" |
pascal@15823 | 38 else |
pascal@15823 | 39 clear |
pascal@15823 | 40 stty cbreak raw -echo min 0 |
pascal@15823 | 41 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@" |
pascal@15823 | 42 stty cooked echo |
pascal@15823 | 43 fi |
pascal@15802 | 44 EOT |
pascal@15804 | 45 chmod 755 $fs/usr/bin/8086tiny.sh |
pascal@15802 | 46 } |