summaryrefslogtreecommitdiff
path: root/libre/qemu-static/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-07 13:34:59 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-07 14:06:48 -0300
commit77a59464a716fd2242058977db02dc1303d8aba4 (patch)
tree018cc9bf86f179985bd39212c2348919821b2685 /libre/qemu-static/PKGBUILD
parentb1ed82f20d72c19fa45ae24af7f60ba1c8d846ec (diff)
downloadabslibre-77a59464a716fd2242058977db02dc1303d8aba4.tar.gz
abslibre-77a59464a716fd2242058977db02dc1303d8aba4.tar.bz2
abslibre-77a59464a716fd2242058977db02dc1303d8aba4.zip
libre/qemu-static: separate qemu-static.conf by respective arch and rm native arch
Diffstat (limited to 'libre/qemu-static/PKGBUILD')
-rw-r--r--libre/qemu-static/PKGBUILD17
1 files changed, 12 insertions, 5 deletions
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 {} \;