extra/qemu to 7.2.0-3

This commit is contained in:
Kevin Mihelich 2023-01-21 12:27:10 +00:00
parent cda9d36d00
commit 00a59486ac

View file

@ -29,7 +29,7 @@ pkgname=(
qemu-{base,desktop,emulators-full,full}
)
pkgver=7.2.0
pkgrel=2
pkgrel=3
pkgdesc="A generic and open source machine emulator and virtualizer"
arch=(x86_64)
url="https://www.qemu.org/"
@ -337,7 +337,10 @@ package_qemu-common() {
done
# modify and rename binfmt.d configs to prevent name conflicts
for _conf in "$pkgdir/usr/lib/binfmt.d/"*; do
cat "$_conf" | tr -d '\n' | sed "s/:$/-static:F/" > "${_conf//.conf/-static.conf}"
_exe_name="$(basename "${_conf/.conf/}")"
_new_exe_name="${_exe_name}-static"
_new_conf_name="${_conf/.conf/-static.conf}"
sed -e "s|usr/bin/${_exe_name}|usr/bin/${_new_exe_name}|" "$_conf" > "${_new_conf_name}"
done
# install default binaries