39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
# Description: Fast CPU emulator and virtualizer for all supported platforms
|
||
|
# URL: http://www.qemu-project.org/
|
||
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
||
|
# Depends on: libsdl glib xorg-libpixman libxkbcommon
|
||
|
# Optional: libseccomp libiscsi libusb usbredir spice
|
||
|
|
||
|
name=qemu-all
|
||
|
version=5.2.0
|
||
|
release=1
|
||
|
source=(http://www.qemu-project.org//download/qemu-$version.tar.bz2)
|
||
|
|
||
|
build() {
|
||
|
|
||
|
cd qemu-$version
|
||
|
|
||
|
./configure --prefix=/usr \
|
||
|
--cc="${CC:=gcc}" \
|
||
|
--host-cc="${CC:=gcc}" \
|
||
|
--sysconfdir=/etc \
|
||
|
--disable-docs \
|
||
|
--libexecdir=/usr/lib/qemu \
|
||
|
--disable-gtk \
|
||
|
--localstatedir=/var
|
||
|
|
||
|
# fix include issues with libcap
|
||
|
sed -i -e '/#include "qemu\/xattr.h"/d' \
|
||
|
-e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \
|
||
|
fsdev/virtfs-proxy-helper.c
|
||
|
|
||
|
make ${MAKEFLAGS:=}
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
install -d $PKG/etc/udev/rules.d/
|
||
|
echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \
|
||
|
$PKG/etc/udev/rules.d/60-kvm.rules
|
||
|
|
||
|
rm -rf $PKG/usr/share/locale
|
||
|
}
|