updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / qemu-git / PKGBUILD
blob3e5883e17c0bd4e99db7becd56f2afd18dd56368
1 # Maintainer:  Devin Cofer <ranguvar{AT]archlinux[DOT}us>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
4 pkgname=qemu-git
5 pkgver=20110327
6 pkgrel=1
7 pkgdesc="Processor emulator and virtual machine with with expansive multi-arch support and fast operation (with an accelerator), dev tree version."
8 arch=('i686' 'x86_64')
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')
16 provides=('qemu')
18 source=('65-kvm.rules'
19         'qemu.install')
20 sha256sums=('c16a8dc7855880b2651f1a3ff488ecc54d4ac1036c71fffd5007021d8d18a7c5'
21             '910e845f3da5c4ea38b3f548dab8c0cfbcdd62822cd38afa2175ba23ac2c31f2')
22 install='qemu.install'
24 _gitroot="git://repo.or.cz/qemu.git"
25 _gitname=qemu
28 options=('!strip')
29 build()
31         msg2 "Performing source checkout..."
32         if [ -d $_gitname ]; then
33                 (cd $_gitname && git pull origin)
34         else
35                 git clone "$_gitroot"
36         fi
37         msg2 "Source checkout finished."
38         rm -rf $_gitname-build
39         git clone $_gitname $_gitname-build
40         cd $_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 \
48                     --disable-spice
49         make
51 package() {
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