wok-6.x annotate dev86/receipt @ rev 19644
dev86: update post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 21 15:22:15 2017 +0100 (2017-01-21) |
parents | e3270f32432e |
children | 21eeda2ce014 |
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@1720 | 16 # Rules to configure and make the package. |
pascal@1720 | 17 compile_rules() |
pascal@1720 | 18 { |
pascal@19284 | 19 sed -i 's|/usr/man|/usr/share/man|' man/Makefile |
pascal@19284 | 20 sed -i 's|REFIX)/man|REFIX)/share/man|' Makefile */Makefile |
pascal@18094 | 21 make -j 1 PREFIX=/usr && |
pascal@13117 | 22 make -j 1 DIST=$DESTDIR install |
pascal@1720 | 23 } |
pascal@1720 | 24 |
pascal@1720 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1720 | 26 genpkg_rules() |
pascal@1720 | 27 { |
pascal@1720 | 28 mkdir -p $fs/usr |
pascal@15603 | 29 cp -a $install/usr/bin $fs/usr |
pascal@15603 | 30 cp -a $install/usr/lib $fs/usr |
pascal@13117 | 31 cp -a $stuff/com2exe $fs/usr/bin |
pascal@1720 | 32 } |
pascal@1720 | 33 |
pascal@11651 | 34 # Pre and post install commands for Tazpkg. |
pascal@11651 | 35 post_install() |
pascal@11651 | 36 { |
pascal@18094 | 37 [ "$1" ] && return |
pascal@18094 | 38 register=/proc/sys/fs/binfmt_misc/register |
pascal@19644 | 39 [ -f $register ] || modprobe binfmt_misc 2> /dev/null || true |
pascal@18094 | 40 [ -f $register ] && cat > $register <<EOT |
pascal@11651 | 41 :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu: |
pascal@11651 | 42 EOT |
pascal@19644 | 43 true |
pascal@11651 | 44 } |