Files
chromebrew/packages/qemu.rb
Satadru Pramanik, DO, MPH, MEng 36fb04d983 Rename libsdl2 => sdl2; Update sdl2; Add sdl2_compat package; Rebuild pkgconf to have pkg-config symlink; Update smallbasic. — libdex → 1.0.0,plutosvg → 0.0.7,plutovg → 1.3.1,py3_gitlint → 0.19.1,sdl2 → 2.32.10,sdl2_compat → 2.32.56,sdl3_image → 3.2.4,sysprof → 49.0,audaspace → 1.7.0,blender → 4.1.1,fceux → 2.6.5,ffmpeg → 7.1.1,flif → 0.4,gegl → 0.4.62,gstreamer → 1.26.6,jellyfin_media_player → 1.9.1-1,json_glib → 1.10.8,krita → 5.2.11,libfaudio → 25.09,libpanel → 1.10.2,libsdl2,libtiff → 4.7.1,libunistring → 1.4,love → 11.5,mjpegtools → 2.2.1,mpv → 0.40.0,opus → 1.5.2-1,pkgconf → 2.5.1-2,py3_numpy → 2.3.3,qemu → 9.1.1,sdl2_image → 2.8.8,sdl2_ttf → 2.24.0,sdl3_ttf → 3.2.2,smallbasic → 12.28,webrtc_audio_processing → 2.1,wxwidgets → 3.2.6-1,xorg_cf_files → 1.0.9,zip → 3.0-15 (#12997)
* Rename libsdl2 => sdl2; Update sdl2; Add sdl2_compat package; Rebuild pkgconf to have pkg-config symlink; Update smallbasic.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Upstream binaries are missing, so delete extremetuxracer package.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add libdex, sysprof, and update webkit2gtk_4_1 deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add libsdl2 stub

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* revert webkit2gtk_4_1

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* revert shotcut

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_gitlint.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update webrtc_audio_processing.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* opus rebuild to get gstreamer build to see it.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add extremetuxracer to deprecated packages.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Move gstreamer to stable branch.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Match zip package homepage with that in anitya.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild sysprof with gcc 15

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* xorg_cf_files => 1.0.9

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update libunistring, libtiff

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add plutovg, plutosvg, update sdl2_ttf, sdl3_ttf

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update sdl2_image

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add sdl3_image

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* libfaudio => 25.0.9

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* updater-smallbasic_12.28: Package File Update Run on linux/386 container.

* Add libfaudio binaries

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild zip.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update audaspace

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Removed libsdl2 stub package, changed libsdl2 deps to sdl2 deps in shotcut and freerdp.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-09-30 18:06:57 +00:00

104 lines
3.1 KiB
Ruby
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require 'package'
class Qemu < Package
description 'QEMU is a generic and open source machine emulator and virtualizer.'
homepage 'https://www.qemu.org/'
version '9.1.1'
license 'GPL-2'
compatibility 'aarch64 armv7l x86_64'
min_glibc '2.29' # Needed for MAP_FIXED_NOREPLACE support.
source_url 'https://github.com/qemu/qemu.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'b07e876cca85b8003be705aee939d5676e0a8109fa69bfb3d7a3cb16d986e67d',
armv7l: 'b07e876cca85b8003be705aee939d5676e0a8109fa69bfb3d7a3cb16d986e67d',
x86_64: '30183ad202272d2d568a6da30a58ad228cd1b42daebee015051703cbdd88eafe'
})
depends_on 'alsa_lib' # R
depends_on 'at_spi2_core' # R
depends_on 'bzip2' # R
depends_on 'cairo' # R
depends_on 'curl' # R
depends_on 'elfutils' # R
depends_on 'eudev' # R
depends_on 'fftw' # R
depends_on 'fontconfig' # R
depends_on 'gcc_lib' # R
depends_on 'gdk_pixbuf' # R
depends_on 'glibc' # R
depends_on 'glib' # R
depends_on 'gnutls' # R
depends_on 'gtk3' # R
depends_on 'harfbuzz' # R
depends_on 'hicolor_icon_theme'
depends_on 'jack' # R
depends_on 'jemalloc'
depends_on 'libaio' # R
depends_on 'libcap_ng' # R
depends_on 'libcyrussasl' # R
depends_on 'libepoxy' # R
depends_on 'libgcrypt'
depends_on 'libjpeg_turbo' # R
depends_on 'libpng' # R
depends_on 'libsamplerate' # R
depends_on 'sdl2' # R
depends_on 'libseccomp' # R
depends_on 'libslirp' # R
depends_on 'libssh' # R
depends_on 'libusb' # R
depends_on 'libx11' # R
depends_on 'libxkbcommon' # R
depends_on 'linux_pam' # R
depends_on 'lzfse' # R
depends_on 'lzo' # R
depends_on 'mesa' # R
depends_on 'ncurses' # R
depends_on 'pango' # R
depends_on 'pipewire' # R
depends_on 'pixman' # R
depends_on 'pulseaudio' # R
depends_on 'py3_sphinx_rtd_theme' => :build
depends_on 'sdl2_image' # R
depends_on 'snappy' # R
depends_on 'sphinx' => :build
depends_on 'vte' # R
depends_on 'zlib' # R
depends_on 'zstd' # R
def self.patch
# Avoid linux/usbdevice_fs.h:88:9: error: unknown type name u8 error
FileUtils.mkdir_p 'linux'
FileUtils.cp "#{CREW_PREFIX}/include/linux/usbdevice_fs.h", 'linux/usbdevice_fs.h'
system "sed -i 's,^\\([[:blank:]]*\\)u8,\\1__u8,g' linux/usbdevice_fs.h"
system "sed -i 's,<linux/usbdevice_fs.h>,\"linux/usbdevice_fs.h\",g' hw/usb/host-libusb.c"
end
def self.build
FileUtils.mkdir_p 'build'
Dir.chdir 'build' do
system "../configure #{CREW_CONFIGURE_OPTIONS.sub(/--target.*/, '').gsub('vfpv3-d16', 'neon').gsub('--disable-dependency-tracking', '').sub(/--program-prefix.*?(?=\s|$)/, '').sub(/--program-suffix.*?(?=\s|$)/, '')} \
--enable-kvm \
--enable-lto"
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "make -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange
@counter += 1
break if @counter > @counter_max
end
end
end
def self.install
Dir.chdir 'build' do
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
end