opt/qemu-all/Pkgfile

39 lines
942 B
Plaintext
Raw Normal View History

# Description: Fast CPU emulator and virtualizer for all supported platforms
2021-08-10 18:10:43 +02:00
# URL: http://www.qemu-project.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libusb linux-pam util-linux glib ninja libsdl2 xorg-libpixman libxkbcommon
# Optional: libseccomp libiscsi usbredir spice
name=qemu-all
2022-12-17 15:43:12 +01:00
version=7.2.0
release=1
2021-12-16 11:47:56 +01:00
source=(https://download.qemu.org/qemu-$version.tar.xz
2021-08-10 18:10:43 +02:00
qemu-man-$version.tar.xz)
build() {
2021-08-10 18:10:43 +02:00
cd qemu-$version
2021-08-10 18:10:43 +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
2021-08-10 18:10:43 +02:00
make ${MAKEFLAGS:=}
make DESTDIR=$PKG install
2021-08-10 18:10:43 +02:00
cp -r $SRC/man $PKG/usr/share
2021-08-10 18:10:43 +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
2021-08-10 18:10:43 +02:00
rm -rf $PKG/usr/share/locale
}