wok diff kqemu/receipt @ rev 473

Up: slitaz-configs (1.4) + slitaz-boot-scripts (1.8.1)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 21 14:01:39 2008 +0100 (2008-03-21)
parents
children cd99ec381938
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/kqemu/receipt	Fri Mar 21 14:01:39 2008 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="kqemu"
     1.7 +VERSION="1.3.0pre11"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="QEMU Accelerator Module."
    1.10 +MAINTAINER="pascal.bellard@ads-lu.com"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://fabrice.bellard.free.fr/qemu"
    1.13 +WGET_URL="$WEB_SITE/$TARBALL"
    1.14 +BUILD_DEPENDS="gcc3"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	local dir
    1.20 +	if [ ! -d ../linux/taz ]; then
    1.21 +		tazwok cook linux
    1.22 +	fi
    1.23 +	dir=$(cd ../linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
    1.24 +	cd $src
    1.25 +	./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
    1.26 +		    --host-cc=gcc-3 --cc=gcc-3
    1.27 +	make
    1.28 +	mkdir -p _pkg/$dir _pkg/dev
    1.29 +	cp kqemu.ko _pkg/$dir
    1.30 +	gzip -9 _pkg/$dir/kqemu.ko
    1.31 +	mknod _pkg/dev/kqemu c 250 0
    1.32 +	chmod 666 _pkg/dev/kqemu
    1.33 +}
    1.34 +
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	cp -a $_pkg/* $fs
    1.40 +}
    1.41 +
    1.42 +# Post install/remove commands for Tazpkg.
    1.43 +post_install()
    1.44 +{
    1.45 +	depmod -a
    1.46 +}
    1.47 +
    1.48 +post_remove()
    1.49 +{
    1.50 +	depmod -a
    1.51 +}
    1.52 +