summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/qemu-static/PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/libre/qemu-static/PKGBUILD b/libre/qemu-static/PKGBUILD
index 81272a139..1f36166d3 100644
--- a/libre/qemu-static/PKGBUILD
+++ b/libre/qemu-static/PKGBUILD
@@ -98,7 +98,7 @@ package_qemu-arch-extra-static() {
options=(!strip)
cd qemu-${pkgver}
- install -dm755 "${pkgdir}"/{usr/bin,etc/binfmt.d}
+ install -dm755 "${pkgdir}"/usr/bin
for _arch in "${_extra_arches[@]}"; do
install -m755 ${_arch}-*/qemu-${_arch} "${pkgdir}"/usr/bin
mv -v "${pkgdir}"/usr/bin/qemu-${_arch}{,-static}
@@ -112,13 +112,15 @@ package_binfmt-qemu-static() {
pkgdesc='Register qemu-static interpreters for various binary formats'
depends=('qemu-arch-extra-static')
+ install -dm755 "${pkgdir}"/usr/lib/binfmt.d
+
if [[ $CARCH = x86_64 ]]; then
- install -m755 "${srcdir}"/qemu-static-x86_64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
+ install -m644 "${srcdir}"/qemu-static-x86_64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = i686 ]]; then
- install -m755 "${srcdir}"/qemu-static-i386.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
+ install -m644 "${srcdir}"/qemu-static-i386.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = armv7h ]]; then
- install -m755 "${srcdir}"/qemu-static-arm.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
+ install -m644 "${srcdir}"/qemu-static-arm.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = mips64el ]]; then
- install -m755 "${srcdir}"/qemu-static-mips64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
+ install -m644 "${srcdir}"/qemu-static-mips64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
fi
}