wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="kqemu"
4 VERSION="1.3.0pre11"
5 CATEGORY="misc"
6 SHORT_DESC="QEMU Accelerator Module."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://bellard.org/qemu"
10 WGET_URL="$WEB_SITE/$TARBALL"
11 DEPENDS="linux"
12 BUILD_DEPENDS="gcc3"
13 SUGGESTED="qemu"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 local dir
19 if [ ! -d $WOK/linux/taz ]; then
20 tazwok cook linux
21 fi
22 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
23 cd $src
24 ./configure --prefix=/usr --host-cc=gcc-3 --cc=gcc-3 \
25 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
26 make
27 mkdir -p _pkg/$dir _pkg/dev
28 cp kqemu.ko _pkg/$dir
29 gzip -9 _pkg/$dir/kqemu.ko
30 mknod _pkg/dev/kqemu c 250 0
31 chmod 666 _pkg/dev/kqemu
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 local kver
38 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config)
39 EXTRAVERSION=_${kver##* }
40 cp -a $_pkg/* $fs
41 }
43 # Post install/remove commands for Tazpkg.
44 post_install()
45 {
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 depmod -a
52 }