blob: 684443a4d144e11ee090d83da8ba89921dadc9d5 (
plain)
1 # Description: Fast CPU emulator and virtualizer for all supported platforms
2 # URL: http://www.qemu-project.org/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Depends on: libsdl glib
5 # Optional: libseccomp libiscsi libusb usbredir spice
6
7 name=qemu-all
8 version=3.0.0
9 release=1
10 source=(http://www.qemu-project.org//download/qemu-$version.tar.bz2)
11
12 build() {
13
14 cd qemu-$version
15
16 ./configure --prefix=/usr \
17 --cc="${CC:=gcc}" \
18 --host-cc="${CC:=gcc}" \
19 --sysconfdir=/etc \
20 --disable-docs \
21 --libexecdir=/usr/lib/qemu \
22 --disable-gtk \
23 --localstatedir=/var
24
25 # fix include issues with libcap
26 sed -i -e '/#include "qemu\/xattr.h"/d' \
27 -e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \
28 fsdev/virtfs-proxy-helper.c
29
30 make ${MAKEFLAGS:=}
31 make DESTDIR=$PKG install
32
33 make qemu.1 qemu-img.1 qemu-nbd.8
34 install -D -m 644 qemu.1 $PKG/usr/share/man/man1/qemu.1
35 install -D -m 644 qemu-img.1 $PKG/usr/share/man/man1/qemu-img.1
36 install -D -m 644 qemu-nbd.8 $PKG/usr/share/man/man8/qemu-nbd.8
37
38 install -d $PKG/etc/udev/rules.d/
39 echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \
40 $PKG/etc/udev/rules.d/60-kvm.rules
41
42 rm -rf $PKG/usr/share/locale
43 }
|