1 #Conributor: Carlos Franke <carlos_franke at lemtank dot de>
2 #Conributor: Vamp898 <vamp898 at web dot de>
3 #Conributor kfgz <kfgz at interia dot pl>
8 pkgdesc="QEMU Accelerator Module, which adds virtualization capabilities to qemu. For kernel26."
10 license=('GPL2' 'BSD')
11 url="http://www.nongnu.org/qemu/"
13 makedepends=('kernel26-headers')
14 install=${pkgname}.install
15 source=(${url}/${pkgname}-${pkgver}.tar.gz
16 kqemu-1.4.0_pre1-init_MUTEX.patch)
17 md5sums=('d738d8ca7332211ab716ec3213d82ee1'
18 'df7cb0c7036ee8cca69e76d9ace3725b')
22 patch -Np1 -i ${srcdir}/kqemu-1.4.0_pre1-init_MUTEX.patch
24 cd ${srcdir}/${pkgname}-${pkgver}
25 #sed -i "s|-Werror||g" tests/Makefile
26 #sed -i "s|-Werror||g" common/Makefile
27 ./configure --kernel-path=/lib/modules/`uname -r`/build
32 cd ${srcdir}/${pkgname}-${pkgver}
33 install -D -m644 kqemu.ko ${pkgdir}/lib/modules/`uname -r`/misc/kqemu.ko
34 #sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION="`uname -r`"/" ${startdir}/kqemu.install
35 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE