Advertisement
Guest User

Untitled

a guest
Dec 6th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.65 KB | None | 0 0
  1. # Maintainer:  Devin Cofer <ranguvar{AT]archlinux[DOT}us>
  2. # Contributor: Tobias Powalowski <tpowa@archlinux.org>
  3.  
  4. pkgname=qemu-git
  5. pkgver=20111206
  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"
  11.  
  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')
  17.  
  18. source=('65-kvm.rules'
  19.         'qemu.install')
  20. sha256sums=('c16a8dc7855880b2651f1a3ff488ecc54d4ac1036c71fffd5007021d8d18a7c5'
  21.             '910e845f3da5c4ea38b3f548dab8c0cfbcdd62822cd38afa2175ba23ac2c31f2')
  22. install='qemu.install'
  23.  
  24. _gitroot="git://repo.or.cz/qemu.git"
  25. _gitname=qemu
  26.  
  27.  
  28. options=('!strip')
  29. build()
  30. {
  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
  41.  
  42.     sed -i -e 's/lib64/lib/g' x86_64.ld
  43.  
  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 --python=/usr/bin/python2
  49.     make
  50. }
  51. package() {
  52.     cd "$srcdir"/$_gitname-build
  53.  
  54.     make DESTDIR="$pkgdir" install
  55.  
  56.     install -Dm644 "$srcdir"/65-kvm.rules \
  57.                    "$pkgdir"/lib/udev/rules.d/65-kvm.rules
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement