2 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
6 pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. This package incorporates a patch that fixed bugs where certain OMAP systems could not boot, such as the Nokia N810."
8 license=('GPL2' 'LGPL2.1')
9 url="http://wiki.qemu.org/Index.html"
10 makedepends=('texi2html' 'perl')
11 depends=('libjpeg' 'libpng' 'sdl' 'alsa-lib' 'esound' 'gnutls>=2.4.1' 'bluez' 'vde2' 'util-linux-ng' 'curl' 'libsasl')
12 backup=('etc/qemu/target-x86_64.conf')
14 source=(http://savannah.nongnu.org/download/qemu/qemu-${pkgver}.tar.gz
20 cd ${srcdir}/qemu-${pkgver}
21 echo "Applying OMAP patch"
22 patch -Np1 < ${srcdir}/omap.patch
24 sed -i -e 's/lib64/lib/g' x86_64.ld || return 1
25 ./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list=oss,alsa,sdl,esd \
26 --audio-card-list=ac97,sb16,es1370,adlib \
28 --kerneldir="/usr/src/linux-$(uname -r)"
30 make DESTDIR=${pkgdir} install || return 1
31 install -D -m644 ${srcdir}/65-kvm.rules \
32 ${pkgdir}/lib/udev/rules.d/65-kvm.rules
34 md5sums=('397a0d665da8ba9d3b9583629f3d6421'
35 'b316a066d2f1bb57d8f5b7ea1d0d1caf'
36 'b5130510fb6ab67d7ad32fac7ad4e536')