mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
qemu-user: move extra binfmts to the relevant package
This commit is contained in:
parent
c35441a029
commit
04bb657872
1 changed files with 11 additions and 2 deletions
|
@ -73,8 +73,14 @@ for _arch in "${_archs[@]}"; do
|
||||||
subpackages+=" ${_pkgname}"
|
subpackages+=" ${_pkgname}"
|
||||||
depends+=" ${_pkgname}>=${version}"
|
depends+=" ${_pkgname}>=${version}"
|
||||||
|
|
||||||
|
case "$_arch" in
|
||||||
|
i386)
|
||||||
|
_extra_binfmts="i486"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
eval "${_pkgname}_package() {
|
eval "${_pkgname}_package() {
|
||||||
_user_tmpl '$_arch'
|
_user_tmpl '$_arch' '$_extra_binfmts'
|
||||||
}"
|
}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -82,12 +88,15 @@ export PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
_user_tmpl() {
|
_user_tmpl() {
|
||||||
_arch="$1"
|
_arch="$1"
|
||||||
_binfmt="$2"
|
_extra_binfmts="$2"
|
||||||
short_desc="QEMU ${_arch} user-mode emulator"
|
short_desc="QEMU ${_arch} user-mode emulator"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/bin/qemu-$_arch"
|
vmove "usr/bin/qemu-$_arch"
|
||||||
vmove "usr/bin/qemu-$_arch-static"
|
vmove "usr/bin/qemu-$_arch-static"
|
||||||
vmove "usr/share/binfmts/qemu-$_arch" || :
|
vmove "usr/share/binfmts/qemu-$_arch" || :
|
||||||
|
for bf in $_extra_binfmts; do
|
||||||
|
vmove "usr/share/binfmts/qemu-$bf" || :
|
||||||
|
done
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue