diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/qemu/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/qemu/MAKEPKG')
| -rw-r--r-- | opt/qemu/MAKEPKG | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/opt/qemu/MAKEPKG b/opt/qemu/MAKEPKG new file mode 100644 index 0000000..a4d4ab7 --- /dev/null +++ b/opt/qemu/MAKEPKG @@ -0,0 +1,67 @@ +#!/bin/mkpkg +# description: Generic machine emulator and virtualizer +# url: https://www.qemu.org + +name=qemu +version=11.1.1 +release=2 +depends=(alsa-lib glib pixman libjpeg-turbo libpng zlib zstd lz4 nettle libslirp) +makedeps=(git meson samurai pkgconf python3 flex bison perl gettext spice-protocol) +source=(https://download.qemu.org/$name-$version.tar.xz) +sha256sums=( + "079ffbff8a7111bbc89022107cbabf3bbfd614d5fc9d7cc675991196aca12482" +) + +patch() { + cd $name-$version + sed -i 's/#include <nettle\/sha.h>/#include <nettle\/sha1.h>\n#include <nettle\/sha2.h>/' \ + crypto/hash-nettle.c +} + +build() { + cd $name-$version + + NINJA=samu \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib/qemu \ + --target-list=x86_64-softmmu \ + --enable-kvm \ + --enable-virtfs \ + --enable-pie \ + --enable-vhost-net \ + --enable-vhost-kernel \ + --enable-slirp \ + --enable-alsa \ + --enable-gtk \ + --disable-sdl \ + --disable-spice \ + --disable-opengl \ + --disable-virglrenderer \ + --disable-docs \ + --disable-debug-info \ + --disable-werror \ + --disable-capstone \ + --disable-bpf \ + --audio-drv-list="" \ + --cc=clang \ + --cxx=clang++ \ + --ninja=samu + + samu -C build -j$(nproc) + DESTDIR=$PKG samu -C build install + + # remove unneeded files + rm -rf $PKG/usr/share/doc + rm -rf $PKG/usr/share/info + rm -f $PKG/usr/lib/qemu/*.a + rm -f $PKG/usr/lib/libfdt.a +} +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
