[arch-commits] Commit in qemu/trunk (PKGBUILD)

Tobias Powalowski tpowa at archlinux.org
Sun Oct 12 05:23:05 EDT 2008


    Date: Sunday, October 12, 2008 @ 05:23:04
  Author: tpowa
Revision: 15010

upgpkg: qemu 0.9.1-11

Modified:
  qemu/trunk/PKGBUILD

----------+
 PKGBUILD |   55 ++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 32 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-10-11 23:11:59 UTC (rev 15009)
+++ PKGBUILD	2008-10-12 09:23:04 UTC (rev 15010)
@@ -2,25 +2,25 @@
 # Maintainer: Tobias Powalowski <tpowa at archlinux.org>
 pkgname=qemu
 pkgver=0.9.1
-pkgrel=10
+pkgrel=11
 _kvmver=76
 pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
 arch=(i686 x86_64)
 license=('GPL')
-url="http://fabrice.bellard.free.fr/qemu/"
-depends=('sdl' 'alsa-lib' 'zlib' 'e2fsprogs' 'gnutls>=2.4.1')
+url="http://bellard.org/qemu/"
+depends=('sdl' 'alsa-lib' 'zlib' 'e2fsprogs' 'gnutls>=2.4.1' 'bluez')
 makedepends=('gcc34')
 install=qemu.install
 source=(http://bellard.org/${pkgname}/${pkgname}-${pkgver}.tar.gz \
         70-kqemu.rules \
         http://downloads.sourceforge.net/kvm/kvm-$_kvmver.tar.gz\
-	kvm-bios.diff)
+	kvm-bios.diff
+	ftp://ftp.archlinux.org/other/qemu/pre-77.patch)
 
 build()
 {
-  cd ${startdir}/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
   unset CFLAGS
-
   if [ "${CARCH}" = "x86_64" ]; then
      # any "xxx-user" target seems to not build on x86_64
          ./configure --prefix=/usr --enable-alsa \
@@ -33,35 +33,44 @@
 
   make || return 1
   make DESTDIR=${startdir}/pkg install || return 1
-  install -D -m644 ${startdir}/src/70-kqemu.rules \
-                   ${startdir}/pkg/etc/udev/rules.d/70-kqemu.rules
+  install -D -m644 ${srcdir}/70-kqemu.rules \
+                   ${pkgdir}/etc/udev/rules.d/70-kqemu.rules
 
   # we add the kvm/qemu version
-    cd ${startdir}/src/kvm-$_kvmver
+    cd ${srcdir}/kvm-$_kvmver
+    # add pre patch to fix weird vga issues
+    patch -Np1 -i ../pre-77.patch || return 1
+    # fix bios versions
     patch -Np1 -i ../kvm-bios.diff || return 1
     ./configure --prefix=/usr
   # fix sdl compilation, JON: and extboot
     sed -i -e 's#-rpath,/usr/lib#-rpath,/usr/lib,-rpath,/lib#g' qemu/config-host.mak
     for dir in libkvm user qemu extboot; do
-      cd ${startdir}/src/kvm-$_kvmver/${dir}
+      cd ${srcdir}/kvm-$_kvmver/${dir}
       make || return 1
     done
    # install kvm-qemu
-    install -m 755 ${startdir}/src/kvm-$_kvmver/qemu/x86_64-softmmu/qemu-system-x86_64 \
-        ${startdir}/pkg/usr/bin/qemu-kvm
-    install -D -m644 ${startdir}/src/kvm-$_kvmver/scripts/65-kvm.rules \
-    	${startdir}/pkg/etc/udev/rules.d/65-kvm.rules || return 1
+    install -m 755 ${srcdir}/kvm-$_kvmver/qemu/x86_64-softmmu/qemu-system-x86_64 \
+        ${pkgdir}/usr/bin/qemu-kvm
+    install -D -m644 ${srcdir}/kvm-$_kvmver/scripts/65-kvm.rules \
+    	${pkgdir}/etc/udev/rules.d/65-kvm.rules || return 1
    # install kvm bios files
-   install -D -m644 ${startdir}/src/kvm-$_kvmver/qemu/pc-bios/bios.bin \
-       ${startdir}/pkg/usr/share/qemu/bios-kvm.bin
-   install -D -m644 ${startdir}/src/kvm-$_kvmver/qemu/pc-bios/vgabios.bin \
-       ${startdir}/pkg/usr/share/qemu/vgabios-kvm.bin
-   install -D -m644 ${startdir}/src/kvm-$_kvmver/qemu/pc-bios/vgabios-cirrus.bin \
-       ${startdir}/pkg/usr/share/qemu/vgabios-cirrus-kvm.bin
-   install -D -m644 ${startdir}/src/kvm-$_kvmver/extboot/extboot.bin \
-	${startdir}/pkg/usr/share/qemu/extboot-kvm.bin
+   install -D -m644 ${srcdir}/kvm-$_kvmver/qemu/pc-bios/bios.bin \
+       ${pkgdir}/usr/share/qemu/bios-kvm.bin
+   install -D -m644 ${srcdir}/kvm-$_kvmver/qemu/pc-bios/vgabios.bin \
+       ${pkgdir}/usr/share/qemu/vgabios-kvm.bin
+   install -D -m644 ${srcdir}/kvm-$_kvmver/qemu/pc-bios/vgabios-cirrus.bin \
+       ${pkgdir}/usr/share/qemu/vgabios-cirrus-kvm.bin
+   install -D -m644 ${srcdir}/kvm-$_kvmver/extboot/extboot.bin \
+	${pkgdir}/usr/share/qemu/extboot-kvm.bin
 }
 md5sums=('6591df8e9270eb358c881de4ebea1262'
          'ec06591830b8fcf53913f05f3d66f7e5'
          '08cf1364e8f02026569a1660e8b8ea01'
-         '1cdfcbd3cc569eec96a36d7557291fd2')
+         '1cdfcbd3cc569eec96a36d7557291fd2'
+         'cf1d4b5fc041b63da7ccad94936988a9')
+md5sums=('6591df8e9270eb358c881de4ebea1262'
+         'ec06591830b8fcf53913f05f3d66f7e5'
+         '08cf1364e8f02026569a1660e8b8ea01'
+         '1cdfcbd3cc569eec96a36d7557291fd2'
+         'cf1d4b5fc041b63da7ccad94936988a9')




More information about the arch-commits mailing list