44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
|
#Description: QEMU is a processor emulator using dynamic translation to achieve good emulation speed (PC, PowerPC, PowerMac, sun, Mips, ARM etc...)
|
||
|
#URL: http://www.qemu.org
|
||
|
#Packager: milisarge@gmail.com
|
||
|
#Depends on: gtk2 gtk3 sdl glib python vte vte3 xorg-mesa nss lzo cyrus-sasl alsa-lib alsa-plugins alsa-utils curl check bluez ncurses nfs-utils libgcrypt libcap-ng gnutls libusb bzip2 usbutils bridge-utils
|
||
|
|
||
|
description="Processor emulator using dynamic translation to achieve good emulation speed"
|
||
|
name=qemu-all
|
||
|
version=2.5.0
|
||
|
release=1
|
||
|
source=(http://wiki.qemu.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
|
||
|
|
||
|
make qemu.1 qemu-img.1 qemu-nbd.8
|
||
|
install -D -m 644 qemu.1 $PKG/usr/share/man1/qemu.1
|
||
|
install -D -m 644 qemu-img.1 $PKG/usr/share/man1/qemu-img.1
|
||
|
install -D -m 644 qemu-nbd.8 $PKG/usr/share/man8/qemu-nbd.8
|
||
|
|
||
|
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
|
||
|
}
|