wok-6.x view kqemu/receipt @ rev 2089
tazlito: no md5sum for distro-packages.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 28 14:13:43 2009 +0100 (2009-01-28) |
parents | af37f2069841 |
children | f306d126580e |
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 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 --host-cc=gcc-3 --cc=gcc-3 \
24 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
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 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 local kver
37 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.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/" ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 depmod -a
51 }