1 # Based on Tobias Powalowski's <tpowa@archlinux.org> original arch linux qemu package.
6 pkgdesc="Qemu with debug-info patch for the use with the sweb operating system."
8 license=('GPL2' 'LGPL2.1')
9 url="http://wiki.qemu.org/Index.html"
10 makedepends=('texi2html' 'perl' 'python2')
13 depends=('libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2' 'gnutls>=2.4.1' 'bluez' 'vde2' 'util-linux-ng' 'curl' 'libsasl' 'libgl')
14 backup=('etc/qemu/target-x86_64.conf')
16 source=(http://wiki.qemu.org/download/${realname}-${pkgver}.tar.gz
18 qemu-debug-info-0xe9.patch)
23 cd ${srcdir}/${realname}-${pkgver}
25 patch -i ${srcdir}/qemu-debug-info-0xe9.patch
27 sed -i -e 's/lib64/lib/g' x86_64.ld
28 ./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list=oss,alsa,sdl \
29 --python=/usr/bin/python2 \
30 --audio-card-list=ac97,sb16,es1370,hda \
36 cd ${srcdir}/${realname}-${pkgver}
37 make DESTDIR=${pkgdir} install
38 install -D -m644 ${srcdir}/65-kvm.rules \
39 ${pkgdir}/lib/udev/rules.d/65-kvm.rules
40 # strip scripts directory
41 find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
42 case "$(file -bi "$binary")" in
43 *application/x-executable*) # Binaries
44 /usr/bin/strip $STRIP_BINARIES "$binary";;
49 md5sums=('dbc55b014bcd21b98e347f6a90f7fb6d'
50 'b316a066d2f1bb57d8f5b7ea1d0d1caf'
51 'a84a042559750476f030bf40334c4bc8')