summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-09 02:22:19 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-09 02:23:44 -0300
commitb7d62182a3542b8e8369193ed5d5afee569e3929 (patch)
tree7ecffe9115a4e0fb6f4b62a8469c1d2324dabd42
parent8ea79d9b4f80553558d236aaf011c7e9022756f1 (diff)
qemu-static: minor fix
-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
}