wok view kqemu/receipt @ rev 1892
get-wifi-firmware: add rt73
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 19 16:38:04 2008 +0000 (2008-12-19) |
parents | 0d30d3d18dcb |
children | f8b7522f8eb2 |
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"
12 SUGGESTED="qemu"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 local dir
18 if [ ! -d $WOK/linux/taz ]; then
19 tazwok cook linux
20 fi
21 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
22 cd $src
23 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
24 --host-cc=gcc-3 --cc=gcc-3
25 make
26 mkdir -p _pkg/$dir _pkg/dev
27 cp kqemu.ko _pkg/$dir
28 gzip -9 _pkg/$dir/kqemu.ko
29 mknod _pkg/dev/kqemu c 250 0
30 chmod 666 _pkg/dev/kqemu
31 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 local kver
38 kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
39 EXTRAVERSION=_${kver##* }
40 cp -a $_pkg/* $fs
41 }
43 # Post install/remove commands for Tazpkg.
44 post_install()
45 {
46 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 depmod -a
52 }