# $Id: PKGBUILD 42170 2009-06-11 18:08:54Z tpowa $ # Maintainer: Thomas Baechler # Contributor: basilburn pkgname=kqemu _kernver=2.6.30-ARCH pkgver=1.4.0pre1 pkgrel=3 pkgdesc="QEMU Accelerator Module, which adds virtualization capabilities to qemu. For kernel26." arch=(i686 x86_64) license=('GPL2' 'BSD') url="http://www.nongnu.org/qemu/" depends=('kernel26>=2.6.30' 'kernel26<2.6.31' 'qemu>=0.10.0') install=kqemu.install source=(http://www.nongnu.org/qemu/kqemu-$pkgver.tar.gz LICENSE) md5sums=('d738d8ca7332211ab716ec3213d82ee1' 'ff53106a9b480cf2e43b189920e56c3e') build() { cd $startdir/src/kqemu-$pkgver ./configure --kernel-path=/lib/modules/${_kernver}/build make || return 1 install -D -m644 kqemu.ko $startdir/pkg/lib/modules/${_kernver}/misc/kqemu.ko || return 1 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/kqemu.install install -D -m644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1 }