wok-current view kqemu/receipt @ rev 919
kqemu: new WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 16 19:31:38 2008 +0000 (2008-06-16) |
parents | 7f4b6a1eec61 |
children | c343c644ab92 |
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@ads-lu.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://bellard.org/qemu"
10 WGET_URL="$WEB_SITE/$TARBALL"
11 BUILD_DEPENDS="gcc3"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 local dir
17 if [ ! -d ../linux/taz ]; then
18 tazwok cook linux
19 fi
20 dir=$(cd ../linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
21 cd $src
22 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
23 --host-cc=gcc-3 --cc=gcc-3
24 make
25 mkdir -p _pkg/$dir _pkg/dev
26 cp kqemu.ko _pkg/$dir
27 gzip -9 _pkg/$dir/kqemu.ko
28 mknod _pkg/dev/kqemu c 250 0
29 chmod 666 _pkg/dev/kqemu
30 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 local kver
37 kver=$(grep "kernel version" ../linux/linux-*/.config)
38 EXTRAVERSION=_${kver##* }
39 cp -a $_pkg/* $fs
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 depmod -a -b "$1/"
46 }
48 post_remove()
49 {
50 depmod -a
51 }