Hi everyone!
For anyone that want to install it on aarch64
(like Pinebook Pro or Pi4) you need to edit PKGBUILD at line 9 to add 'aarch64' as follows:
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
And then add this code to the case
statement at line 38:
aarch64)
_vscode_arch=arm64
;;
If you have less than 8GB RAM on your system (like on Pinebook Pro or Pi4) then make sure to add a swap partition or swap file to increase your RAM before compiling.
Thank you very much @Zrax for creating this package, it has been incredibly useful to me and so many people!
For everyone like me that prefer a patch file, here is the Git patch:
diff --git a/PKGBUILD b/PKGBUILD
index 282fdd7..c692486 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=code-git
pkgdesc='The Open Source build of Visual Studio Code (vscode) editor - git latest'
pkgver=1.38.0.r1831.g3d3202804b
pkgrel=1
-arch=('i686' 'x86_64' 'armv7h')
+arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url='https://github.com/microsoft/vscode'
license=('MIT')
depends=('electron' 'libsecret' 'libx11' 'libxkbfile' 'ripgrep')
@@ -35,6 +35,9 @@ case "$CARCH" in
armv7h)
_vscode_arch=arm
;;
+ aarch64)
+ _vscode_arch=arm64
+ ;;
*)
# Needed for mksrcinfo
_vscode_arch=DUMMY
Pinned Comments
oech3 commented on 2025-05-19 11:39 (UTC) (edited on 2025-05-21 13:40 (UTC) by oech3)
electron
dependency is swapped withelectronNM
at packaging.Minify is disabled by default (see
bottom of build()
).