wok-6.x annotate dev86/receipt @ rev 24105
Add bindfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 25 16:21:20 2021 +0000 (2021-09-25) |
parents | 21eeda2ce014 |
children | ac8ca9758df1 |
rev | line source |
---|---|
pascal@1720 | 1 # SliTaz package receipt. |
pascal@1720 | 2 |
pascal@1720 | 3 PACKAGE="dev86" |
pascal@18094 | 4 VERSION="0.16.21" |
pascal@1720 | 5 CATEGORY="development" |
pascal@1720 | 6 SHORT_DESC="Linux 8086 development environment." |
pascal@1720 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14801 | 8 LICENSE="GPL2" |
pascal@18094 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1720 | 10 WEB_SITE="http://www.debath.co.uk/" |
pascal@18094 | 11 WGET_URL="https://github.com/lkundrak/dev86/archive/v$VERSION.tar.gz" |
pascal@13033 | 12 TAGS="compiler C assembler 8086" |
pascal@1720 | 13 |
pascal@18094 | 14 BUILD_DEPENDS="wget" |
pascal@18094 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@1720 | 22 # Rules to configure and make the package. |
pascal@1720 | 23 compile_rules() |
pascal@1720 | 24 { |
pascal@20533 | 25 sed -i 's|include/malloc.h|& 2> /dev/null|' libc/malloc/Makefile |
pascal@19284 | 26 sed -i 's|/usr/man|/usr/share/man|' man/Makefile |
pascal@19284 | 27 sed -i 's|REFIX)/man|REFIX)/share/man|' Makefile */Makefile |
pascal@18094 | 28 make -j 1 PREFIX=/usr && |
pascal@13117 | 29 make -j 1 DIST=$DESTDIR install |
pascal@1720 | 30 } |
pascal@1720 | 31 |
pascal@1720 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1720 | 33 genpkg_rules() |
pascal@1720 | 34 { |
pascal@1720 | 35 mkdir -p $fs/usr |
pascal@15603 | 36 cp -a $install/usr/bin $fs/usr |
pascal@15603 | 37 cp -a $install/usr/lib $fs/usr |
pascal@13117 | 38 cp -a $stuff/com2exe $fs/usr/bin |
pascal@1720 | 39 } |
pascal@1720 | 40 |
pascal@11651 | 41 # Pre and post install commands for Tazpkg. |
pascal@11651 | 42 post_install() |
pascal@11651 | 43 { |
pascal@18094 | 44 [ "$1" ] && return |
pascal@18094 | 45 register=/proc/sys/fs/binfmt_misc/register |
pascal@19644 | 46 [ -f $register ] || modprobe binfmt_misc 2> /dev/null || true |
pascal@18094 | 47 [ -f $register ] && cat > $register <<EOT |
pascal@11651 | 48 :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu: |
pascal@11651 | 49 EOT |
pascal@19644 | 50 true |
pascal@11651 | 51 } |