1 # Maintainer: Peter B. Jørgensen <peterbjorgensen{AT]gmail[DOT}com>
2 # Adopted from qemu-git from AUR
7 pkgdesc="Processor emulator and virtual machine with with expansive multi-arch support and fast operation (with an accelerator), fork with m680x0 patches."
9 license=('GPL2' 'LGPL2')
10 url="http://www.nongnu.org/qemu/"
13 depends=('zlib' 'e2fsprogs' 'gnutls>=2.4.1' 'sdl' 'alsa-lib')
14 conflicts=('qemu' 'kvm')
17 source=('65-kvm.rules'
19 sha256sums=('84df4528284e5039e225aa6b2d53005dc9e525d264b117b32761904abbe7da26'
20 'f68a919d5c99252759e5349cc573a44a0619e20e29d97b6a0f26d6861deed41c')
21 install="$pkgname.install"
23 _gitroot="git://gitorious.org/qemu-m68k/qemu-m68k.git"
28 msg "Performing source checkout..."
29 if [ -d "$_gitname" ]; then
31 git pull origin || return 1
34 git clone "$_gitroot" || return 1
36 msg "Source checkout finished."
37 rm -rf "$_gitname-build"
38 git clone "$_gitname" "$_gitname-build" || return 1
42 sed -i -e 's/lib64/lib/g' x86_64.ld || return 1
44 ./configure --prefix=/usr --audio-drv-list=alsa,oss,sdl \
45 --audio-card-list=ac97,sb16,es1370 --disable-bluez \
46 --kerneldir="/usr/src/linux-$(uname -r)" || return 1
48 make DESTDIR="$pkgdir" install || return 1
50 install -Dm644 "$srcdir/70-kqemu.rules" \
51 "$pkgdir/lib/udev/rules.d/70-kqemu.rules"
52 install -Dm644 "$srcdir/65-kvm.rules" \
53 "$pkgdir/lib/udev/rules.d/65-kvm.rules"