Skip to content

Instantly share code, notes, and snippets.

@Atemu
Created September 11, 2018 13:14
Show Gist options
  • Save Atemu/c006a450ff9055df12ede2852f581000 to your computer and use it in GitHub Desktop.
Save Atemu/c006a450ff9055df12ede2852f581000 to your computer and use it in GitHub Desktop.
Support aarch64 for qemu-user-static
--- PKGBUILD 2018-09-11 13:04:32.129183905 +0000
+++ PKGBUILD.new 2018-09-11 12:44:41.211983309 +0000
@@ -5,7 +5,7 @@
pkgver=2.12
pkgrel=4
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation, statically linked."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
depends=()
@@ -13,10 +13,12 @@
conflicts=()
_arch=amd64
[ "$CARCH" = 'i686' ] && _arch=i386
+[ "$CARCH" = 'armv7h' ] && _arch=armhf
_debsrc=${pkgname}_${pkgver}+dfsg-3_${_arch}.deb
source=(http://ftp.debian.org/debian/pool/main/q/qemu/${_debsrc})
sha1sums=('ac8defaa5b8624bc0585877f6272e23be921a70a')
[ "$CARCH" = 'i686' ] && sha1sums=('b67bd47793047ddcbd79822bdaf297d0f3e99384')
+[ "$CARCH" = 'armv7h' ] && sha1sums=('5236eee6e743169d6f3c5612afddcd056c3a5aeb')
prepare() {
cd "$srcdir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment