opt/qemu/Pkgfile

45 lines
1.4 KiB
Plaintext
Raw Normal View History

# Description: Fast CPU emulator and virtualizer for the x86 platform
# URL: http://www.qemu-project.org/
2009-09-19 01:05:25 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: glib libsdl xorg-libpixman libxkbcommon
# Optional: libseccomp libiscsi libusb usbredir spice
2009-03-08 09:43:24 +01:00
name=qemu
2020-01-27 23:25:25 +01:00
version=4.2.0
2020-02-05 02:19:18 +01:00
release=2
2018-09-09 02:48:23 +02:00
source=(http://wiki.qemu-project.org/download/qemu-$version.tar.bz2)
2009-03-08 09:43:24 +01:00
build() {
2012-08-24 15:50:33 +02:00
cd $name-$version
2009-09-19 01:05:25 +02:00
./configure --prefix=/usr \
--cc="${CC:=gcc}" \
2010-10-19 22:32:20 +02:00
--host-cc="${CC:=gcc}" \
--sysconfdir=/etc \
--disable-docs \
--libexecdir=/usr/lib/qemu \
2013-06-30 13:43:44 +02:00
--disable-gtk \
2013-11-29 20:37:14 +01:00
--localstatedir=/var \
2020-02-05 02:19:18 +01:00
--python=/usr/bin/python3 \
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu
2011-08-12 00:11:24 +02:00
# 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
2013-02-17 00:54:49 +01:00
make ${MAKEFLAGS:=}
2009-09-19 01:05:25 +02:00
make DESTDIR=$PKG install
make qemu.1 qemu-img.1 qemu-nbd.8
2016-04-14 23:16:53 +02:00
install -D -m 644 qemu.1 $PKG/usr/share/man/man1/qemu.1
install -D -m 644 qemu-img.1 $PKG/usr/share/man/man1/qemu-img.1
install -D -m 644 qemu-nbd.8 $PKG/usr/share/man/man8/qemu-nbd.8
2013-05-21 21:05:36 +02:00
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
2013-05-21 21:05:36 +02:00
rm -rf $PKG/usr/share/locale
2009-03-08 09:43:24 +01:00
}