#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) pkgname=kqemu pkgver=1.4.0pre1 zenver=`uname -r` pkgrel=1 arch=i486 source=("http://www.nongnu.org/qemu/kqemu-$pkgver.tar.gz" "http://pnboy.pinguix.com/gapan/$pkgname/qemu.txt" "http://pnboy.pinguix.com/gapan/$pkgname/rc.qemu") sourcetemplate=http://pnboy.pinguix.com/gapan/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "kqemu-doc.html") url=http://fabrice.bellard.free.fr/qemu options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') doinst() { modprobe -r kqemu 2> /dev/null sleep 1 depmod -a sleep 1 modprobe kqemu major=0 modprobe rtc echo 1024 > proc/sys/dev/rtc/max-user-freq chmod 666 dev/kqemu } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "kqemu - QEMU accelarator module" "The QEMU Accelerator Module increases the speed of QEMU when a PC is" "emulated on a PC. It runs most of the target application code directly" "on the host processor to achieve near native performance. It is very" "useful when you want to run another Operating System (for example" "Windows) on a Linux desktop." "" "This package was built for linux kernel `uname -r`." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr sed -i -e "s/-O2/-O2 -march=i486 -mtune=i686/" common/Makefile make mkdir -p $startdir/pkg/lib/modules/`uname -r`/misc cp kqemu.ko $startdir/pkg/lib/modules/`uname -r`/misc mkdir -p $startdir/pkg/etc/rc.d/desc.d cp $startdir/src/qemu.txt $startdir/pkg/etc/rc.d/desc.d cp $startdir/src/rc.qemu $startdir/pkg/etc/rc.d chmod a+x $startdir/pkg/etc/rc.d/rc.qemu }