updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / kqemu / PKGBUILD
blob683bb221ee240c494af009f92d54af5cd5ccc9bf
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>
5 pkgname=kqemu
6 pkgver=1.4.0pre1
7 pkgrel=8
8 pkgdesc="QEMU Accelerator Module, which adds virtualization capabilities to qemu. For kernel26."
9 arch=('i686' 'x86_64')
10 license=('GPL2' 'BSD')
11 url="http://www.nongnu.org/qemu/"
12 depends=("qemu<0.12")
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')
20 build() {
21   cd ${srcdir}
22   patch -Np1 -i ${srcdir}/kqemu-1.4.0_pre1-init_MUTEX.patch
23   
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
28   make
31 package() {
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
36