wok-tiny view runcom/receipt @ rev 90

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 13:51:26 2013 +0200 (2013-07-05)
parents d55b82d5919c
children 371673f39e46
line source
1 # SliTaz package receipt.
3 PACKAGE="runcom"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="DOS .com binary format support"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://bellard.org/jslinux"
10 TARGET="i486"
11 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir $src
17 cd $src
18 tarball=$(wget -O - $WEB_SITE/tech.html | \
19 sed '/linuxstart/!d;s/.*href="\([^"]*\)".*/\1/')
20 wget $WEB_SITE/$tarball
21 tar xzf $tarball
22 mkdir -p _pkg/usr/bin
23 uclibc-$TARGET-cc -o _pkg/usr/bin/runcom $(find . -name runcom.c)
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $_pkg/* $fs
30 }
32 # Post install command for Tazpkg.
33 post_install()
34 {
35 cat >> $1/etc/init.d/local.sh <<EOT
36 [ -d /proc/sys/fs/binfmt_misc ] && echo ':DOSCOM:E::com::/usr/bin/runcom:' > /proc/sys/fs/binfmt_misc/register
37 EOT
38 }