wok view dev86/receipt @ rev 20235

busybox: add arch (uname -m alias)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 05 15:52:59 2018 +0100 (2018-03-05)
parents e3270f32432e
children 21eeda2ce014
line source
1 # SliTaz package receipt.
3 PACKAGE="dev86"
4 VERSION="0.16.21"
5 CATEGORY="development"
6 SHORT_DESC="Linux 8086 development environment."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.debath.co.uk/"
11 WGET_URL="https://github.com/lkundrak/dev86/archive/v$VERSION.tar.gz"
12 TAGS="compiler C assembler 8086"
14 BUILD_DEPENDS="wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|/usr/man|/usr/share/man|' man/Makefile
20 sed -i 's|REFIX)/man|REFIX)/share/man|' Makefile */Makefile
21 make -j 1 PREFIX=/usr &&
22 make -j 1 DIST=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 cp -a $install/usr/bin $fs/usr
30 cp -a $install/usr/lib $fs/usr
31 cp -a $stuff/com2exe $fs/usr/bin
32 }
34 # Pre and post install commands for Tazpkg.
35 post_install()
36 {
37 [ "$1" ] && return
38 register=/proc/sys/fs/binfmt_misc/register
39 [ -f $register ] || modprobe binfmt_misc 2> /dev/null || true
40 [ -f $register ] && cat > $register <<EOT
41 :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:
42 EOT
43 true
44 }