wok annotate dev86/receipt @ rev 18232
linld: add tobzimage (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 23 12:19:27 2015 +0200 (2015-07-23) |
parents | 051931e905b0 |
children | e3270f32432e |
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@18094 | 19 make -j 1 PREFIX=/usr && |
pascal@13117 | 20 make -j 1 DIST=$DESTDIR install |
pascal@1720 | 21 } |
pascal@1720 | 22 |
pascal@1720 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1720 | 24 genpkg_rules() |
pascal@1720 | 25 { |
pascal@1720 | 26 mkdir -p $fs/usr |
pascal@15603 | 27 cp -a $install/usr/bin $fs/usr |
pascal@15603 | 28 cp -a $install/usr/lib $fs/usr |
pascal@13117 | 29 cp -a $stuff/com2exe $fs/usr/bin |
pascal@1720 | 30 } |
pascal@1720 | 31 |
pascal@11651 | 32 # Pre and post install commands for Tazpkg. |
pascal@11651 | 33 post_install() |
pascal@11651 | 34 { |
pascal@18094 | 35 [ "$1" ] && return |
pascal@18094 | 36 register=/proc/sys/fs/binfmt_misc/register |
pascal@18094 | 37 [ -f $register ] || modprobe binfmt_misc |
pascal@18094 | 38 [ -f $register ] && cat > $register <<EOT |
pascal@11651 | 39 :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu: |
pascal@11651 | 40 EOT |
pascal@11651 | 41 } |