wok-6.x annotate kqemu/receipt @ rev 3026

Add: murrine-svn-themes (some themes for murrine GTK engine)
author Rohit Joshi <jozee@slitaz.org>
date Mon May 11 19:49:47 2009 +0000 (2009-05-11)
parents c1610baa4cf4
children 37a6d35387dd
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."
pankso@2046 7 MAINTAINER="pascal.bellard@slitaz.org"
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@2926 11 DEPENDS="linux"
pascal@438 12 BUILD_DEPENDS="gcc3"
pascal@1733 13 SUGGESTED="qemu"
pascal@438 14
pascal@438 15 # Rules to configure and make the package.
pascal@438 16 compile_rules()
pascal@438 17 {
pascal@438 18 local dir
pascal@1452 19 if [ ! -d $WOK/linux/taz ]; then
pascal@438 20 tazwok cook linux
pascal@438 21 fi
pascal@1452 22 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
pascal@438 23 cd $src
pascal@2061 24 ./configure --prefix=/usr --host-cc=gcc-3 --cc=gcc-3 \
pascal@2061 25 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
pascal@438 26 make
pascal@438 27 mkdir -p _pkg/$dir _pkg/dev
pascal@438 28 cp kqemu.ko _pkg/$dir
pascal@438 29 gzip -9 _pkg/$dir/kqemu.ko
pascal@438 30 mknod _pkg/dev/kqemu c 250 0
pascal@438 31 chmod 666 _pkg/dev/kqemu
pascal@438 32 }
pascal@438 33
pascal@438 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 35 genpkg_rules()
pascal@438 36 {
pascal@910 37 local kver
pascal@2062 38 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config)
pascal@910 39 EXTRAVERSION=_${kver##* }
pascal@438 40 cp -a $_pkg/* $fs
pascal@438 41 }
pascal@438 42
pascal@438 43 # Post install/remove commands for Tazpkg.
pascal@438 44 post_install()
pascal@438 45 {
pascal@2926 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@438 47 }
pascal@438 48
pascal@438 49 post_remove()
pascal@438 50 {
pascal@1286 51 depmod -a
pascal@438 52 }
pascal@438 53