opt/qemu/Pkgfile

37 lines
922 B
Plaintext
Raw Normal View History

# Description: Fast CPU emulator and virtualizer for the x86 platform
2020-09-02 13:49:51 +02:00
# URL: https://www.qemu.org/
2009-09-19 01:05:25 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
2020-09-02 13:49:51 +02:00
# Depends on: libusb linux-pam util-linux glib libsdl2 xorg-libpixman libxkbcommon
2009-03-08 09:43:24 +01:00
name=qemu
2020-12-09 00:29:15 +01:00
version=5.2.0
2020-09-02 13:49:51 +02:00
release=1
source=(https://download.qemu.org/$name-$version.tar.xz
$name-man-$version.tar.xz)
2009-03-08 09:43:24 +01:00
build() {
2020-09-02 13:49:51 +02:00
cd $name-$version
2020-09-02 13:49:51 +02:00
./configure \
--prefix=/usr \
--cc="${CC:=gcc}" \
--host-cc="${CC:=gcc}" \
--sysconfdir=/etc \
--disable-docs \
--libexecdir=/usr/lib/qemu \
--disable-gtk \
--localstatedir=/var \
--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
2020-09-02 13:49:51 +02:00
make
make DESTDIR=$PKG install
2020-09-02 13:49:51 +02:00
cp -r $SRC/man $PKG/usr/share
2020-09-02 13:49:51 +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
2009-03-08 09:43:24 +01:00
}