wok-tiny view runcom/receipt @ rev 141

linux: pack setup (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 07 11:56:18 2018 +0200 (2018-07-07)
parents a6d2ddc65590
children 1e55ea7da8de
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 $DESTDIR/usr/bin
23 uclibc-$TARGET-cc -o $DESTDIR/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 $install/* $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 }