wok view dev86/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 5ea0ce1cecc0
children 2b069c72d47e
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 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|include/malloc.h|& 2> /dev/null|' libc/malloc/Makefile
26 sed -i 's|/usr/man|/usr/share/man|' man/Makefile
27 sed -i 's|REFIX)/man|REFIX)/share/man|' Makefile */Makefile
28 make -j 1 PREFIX=/usr &&
29 make -j 1 DIST=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 cp -a $stuff/com2exe $fs/usr/bin
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 [ "$1" ] && return
45 register=/proc/sys/fs/binfmt_misc/register
46 [ -f $register ] || modprobe binfmt_misc 2> /dev/null || true
47 [ -f $register ] && cat > $register <<EOT
48 :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:
49 EOT
50 true
51 }