From 77a59464a716fd2242058977db02dc1303d8aba4 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Sat, 7 May 2016 13:34:59 -0300 Subject: libre/qemu-static: separate qemu-static.conf by respective arch and rm native arch --- libre/qemu-static/PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'libre/qemu-static/PKGBUILD') diff --git a/libre/qemu-static/PKGBUILD b/libre/qemu-static/PKGBUILD index aff188ca1..2944c4c09 100644 --- a/libre/qemu-static/PKGBUILD +++ b/libre/qemu-static/PKGBUILD @@ -5,15 +5,17 @@ pkgbase=qemu pkgname=('qemu-static' 'qemu-arch-extra-static') pkgver=2.5.1 -pkgrel=1.7 +pkgrel=1.8 arch=('i686' 'x86_64' 'armv7h') license=('GPL2' 'LGPL2.1') url='http://wiki.qemu.org/' makedepends=('pixman-static' 'glib2-static' 'pcre-static' 'python2') source=(http://wiki.qemu.org/download/${pkgbase}-${pkgver}.tar.bz2 - qemu-static.conf) + qemu-static-{arm,mips,x86}.conf) md5sums=('42e73182dea8b9213fa7050e168a4615' - 'c11ebba718c46a31e1f3432fef700c91') + '77d5c2e9701f5e1853d9bfd2ef71182a' + '551ec0a682887406f952634fb46b7d36' + '0edd65932dbdec2a5951b9ad88eadcef') _extra_arches=(aarch64 alpha arm armeb cris m68k microblaze microblazeel or32 ppc ppc64 ppc64abi32 ppc64le s390x tilegx @@ -29,7 +31,6 @@ elif [[ $CARCH = mips64el ]]; then _extra_arches+=(x86_64 i386 aarch64 arm armeb) fi - prepare() { for _p in *.patch; do [[ -e "$_p" ]] || continue @@ -99,7 +100,13 @@ package_qemu-arch-extra-static() { install -m755 ${_arch}-*/qemu-${_arch} "${pkgdir}"/usr/bin mv -v "${pkgdir}"/usr/bin/qemu-${_arch}{,-static} done - install -m755 "${srcdir}"/qemu-static.conf "${pkgdir}"/etc/binfmt.d + if [[ $CARCH = x86_64 || $CARCH = i686 ]]; then + install -m755 "${srcdir}"/qemu-static-x86.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf + elif [[ $CARCH = armv7h ]]; then + install -m755 "${srcdir}"/qemu-static-arm.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf + elif [[ $CARCH = mips64el ]]; then + install -m755 "${srcdir}"/qemu-static-mips.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf + fi # manually stripping find "${pkgdir}"/usr/bin -type f -exec strip {} \; -- cgit v1.2.3