updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / qemu-omap / PKGBUILD
blobbf581aecb6536c7c75a7f303a89afaed9124f44a
1 # $Id$
2 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 pkgname=qemu-omap
4 pkgver=0.13.0
5 pkgrel=1
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."
7 arch=('i686' 'x86_64')
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')
13 install=qemu.install
14 source=(http://savannah.nongnu.org/download/qemu/qemu-${pkgver}.tar.gz
15         65-kvm.rules
16         omap.patch)
18 build()
20   cd ${srcdir}/qemu-${pkgver}
21   echo "Applying OMAP patch"
22   patch -Np1 < ${srcdir}/omap.patch
23   echo "Patch done"
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 \
27               --enable-docs \
28               --kerneldir="/usr/src/linux-$(uname -r)"
29   make || return 1
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')