updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / qemu-m68k-git / PKGBUILD
blob81ac02101de7dacb8c1c7f5e5c12fced14f804ad
1 # Maintainer:  Peter B. Jørgensen <peterbjorgensen{AT]gmail[DOT}com>
2 # Adopted from qemu-git from AUR
4 pkgname=qemu-m68k-git
5 pkgver=20100406
6 pkgrel=1
7 pkgdesc="Processor emulator and virtual machine with with expansive multi-arch support and fast operation (with an accelerator), fork with m680x0 patches."
8 arch=('i686' 'x86_64')
9 license=('GPL2' 'LGPL2')
10 url="http://www.nongnu.org/qemu/"
12 makedepends=('git')
13 depends=('zlib' 'e2fsprogs' 'gnutls>=2.4.1' 'sdl' 'alsa-lib')
14 conflicts=('qemu' 'kvm')
15 provides=('qemu')
17 source=('65-kvm.rules'
18         '70-kqemu.rules')
19 sha256sums=('84df4528284e5039e225aa6b2d53005dc9e525d264b117b32761904abbe7da26'
20             'f68a919d5c99252759e5349cc573a44a0619e20e29d97b6a0f26d6861deed41c')
21 install="$pkgname.install"
23 _gitroot="git://gitorious.org/qemu-m68k/qemu-m68k.git"
24 _gitname=qemu-m68k
27 build() {
28         msg "Performing source checkout..."
29         if [ -d "$_gitname" ]; then
30                 cd "$_gitname"
31                 git pull origin || return 1
32                 cd ..
33         else
34                 git clone "$_gitroot" || return 1
35         fi
36         msg "Source checkout finished."
37         rm -rf "$_gitname-build"
38         git clone "$_gitname" "$_gitname-build" || return 1
39         
40         cd "$_gitname-build"
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
47         make || 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"