Skip to content

Instantly share code, notes, and snippets.

@darkgeek
Created August 30, 2018 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkgeek/8cae10ab9c2fc6234241e9fc69f6dc9f to your computer and use it in GitHub Desktop.
Save darkgeek/8cae10ab9c2fc6234241e9fc69f6dc9f to your computer and use it in GitHub Desktop.
Support aarch64 for qemu-user-static
--- PKGBUILD 2018-08-31 02:30:42.954132382 +0800
+++ PKGBUILD.after 2018-08-31 02:36:12.363488755 +0800
@@ -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' 'aarch64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
depends=()
@@ -13,10 +13,12 @@
conflicts=()
_arch=amd64
[ "$CARCH" = 'i686' ] && _arch=i386
+[ "$CARCH" = 'aarch64' ] && _arch=arm64
_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" = 'aarch64' ] && sha1sums=('eafb3efe2b485c96820cde0bbefe8ced9443d965')
prepare() {
cd "$srcdir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment