wok-current annotate kqemu/receipt @ rev 1677

Add ocaml
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 08 14:00:28 2008 +0000 (2008-11-08)
parents b4ca1619acb9
children 4c90e423814c
rev   line source
pascal@438 1 # SliTaz package receipt.
pascal@438 2
pascal@438 3 PACKAGE="kqemu"
pascal@438 4 VERSION="1.3.0pre11"
pascal@438 5 CATEGORY="misc"
pascal@438 6 SHORT_DESC="QEMU Accelerator Module."
pascal@438 7 MAINTAINER="pascal.bellard@ads-lu.com"
pascal@438 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@919 9 WEB_SITE="http://bellard.org/qemu"
pascal@438 10 WGET_URL="$WEB_SITE/$TARBALL"
pascal@438 11 BUILD_DEPENDS="gcc3"
pascal@438 12
pascal@438 13 # Rules to configure and make the package.
pascal@438 14 compile_rules()
pascal@438 15 {
pascal@438 16 local dir
pascal@1452 17 if [ ! -d $WOK/linux/taz ]; then
pascal@438 18 tazwok cook linux
pascal@438 19 fi
pascal@1452 20 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
pascal@438 21 cd $src
pascal@438 22 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
pascal@438 23 --host-cc=gcc-3 --cc=gcc-3
pascal@438 24 make
pascal@438 25 mkdir -p _pkg/$dir _pkg/dev
pascal@438 26 cp kqemu.ko _pkg/$dir
pascal@438 27 gzip -9 _pkg/$dir/kqemu.ko
pascal@438 28 mknod _pkg/dev/kqemu c 250 0
pascal@438 29 chmod 666 _pkg/dev/kqemu
pascal@438 30 }
pascal@438 31
pascal@438 32
pascal@438 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 34 genpkg_rules()
pascal@438 35 {
pascal@910 36 local kver
pascal@1452 37 kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
pascal@910 38 EXTRAVERSION=_${kver##* }
pascal@438 39 cp -a $_pkg/* $fs
pascal@438 40 }
pascal@438 41
pascal@438 42 # Post install/remove commands for Tazpkg.
pascal@438 43 post_install()
pascal@438 44 {
pascal@1455 45 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
pascal@438 46 }
pascal@438 47
pascal@438 48 post_remove()
pascal@438 49 {
pascal@1286 50 depmod -a
pascal@438 51 }
pascal@438 52