updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qemu-sweb / PKGBUILD
blob83685cc7512ff76d506038bf8119a30748a5f465
1 # Based on Tobias Powalowski's <tpowa@archlinux.org> original arch linux qemu package.
2 realname=qemu
3 pkgname=qemu-sweb
4 pkgver=0.15.0
5 pkgrel=2
6 pkgdesc="Qemu with debug-info patch for the use with the sweb operating system."
7 arch=('i686' 'x86_64')
8 license=('GPL2' 'LGPL2.1')
9 url="http://wiki.qemu.org/Index.html"
10 makedepends=('texi2html' 'perl' 'python2')
11 conflicts=(qemu)
12 provides=(qemu)
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')
15 install=qemu.install
16 source=(http://wiki.qemu.org/download/${realname}-${pkgver}.tar.gz
17         65-kvm.rules
18         qemu-debug-info-0xe9.patch)
19 options=(!strip)
21 build()
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 \
31               --enable-docs
32               make
35 package() {
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";;
45       esac
46     done
49 md5sums=('dbc55b014bcd21b98e347f6a90f7fb6d'
50          'b316a066d2f1bb57d8f5b7ea1d0d1caf'
51          'a84a042559750476f030bf40334c4bc8')