1 # Maintainer: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
7 pkgdesc="Processor emulator and virtual machine with with expansive multi-arch support and fast operation (with an accelerator), dev tree version."
9 license=('GPL2' 'LGPL2')
10 url="http://wiki.qemu.org/Index.html"
12 makedepends=('git' 'texi2html' 'perl')
13 depends=('gnutls>=2.4.1' 'bluez' 'vde2' 'util-linux-ng' 'curl' 'libsasl'
14 'sdl' 'alsa-lib' 'esound')
15 conflicts=('qemu' 'kvm')
18 source=('65-kvm.rules'
20 sha256sums=('c16a8dc7855880b2651f1a3ff488ecc54d4ac1036c71fffd5007021d8d18a7c5'
21 '910e845f3da5c4ea38b3f548dab8c0cfbcdd62822cd38afa2175ba23ac2c31f2')
22 install='qemu.install'
24 _gitroot="git://repo.or.cz/qemu.git"
31 msg2 "Performing source checkout..."
32 if [ -d $_gitname ]; then
33 (cd $_gitname && git pull origin)
37 msg2 "Source checkout finished."
38 rm -rf $_gitname-build
39 git clone $_gitname $_gitname-build
42 sed -i -e 's/lib64/lib/g' x86_64.ld
44 # http://www.mail-archive.com/qemu-devel@nongnu.org/msg40524.html
45 ./configure --prefix=/usr --audio-drv-list=alsa,oss,sdl,esd \
46 --audio-card-list=ac97,sb16,es1370,adlib --enable-docs \
47 --extra-cflags=-D__EXPORTED__HEADERS__ --disable-werror \
52 cd "$srcdir"/$_gitname-build
54 make DESTDIR="$pkgdir" install
56 install -Dm644 "$srcdir"/65-kvm.rules \
57 "$pkgdir"/lib/udev/rules.d/65-kvm.rules