Package Details: rust-analyzer-nightly-bin 0.4.1428standalone-1

Git Clone URL: https://aur.archlinux.org/rust-analyzer-nightly-bin.git (read-only, click to copy)
Package Base: rust-analyzer-nightly-bin
Description: An experimental Rust compiler front-end for IDEs (nightly)
Upstream URL: https://github.com/rust-analyzer/rust-analyzer
Keywords: analyzer bin nightly rust
Licenses: MIT
Conflicts: rust-analyzer
Provides: rust-analyzer
Submitter: 0jdxt
Maintainer: None
Last Packager: 0jdxt
Votes: 1
Popularity: 0.000051
First Submitted: 2021-05-09 17:48 (UTC)
Last Updated: 2023-03-09 22:19 (UTC)

Dependencies (0)

Required by (8)

Sources (2)

Latest Comments

uetcis commented on 2023-03-09 03:19 (UTC) (edited on 2023-03-09 03:20 (UTC) by uetcis)

Hi, would you add the following changes to add support for aarch64 machines? Thanks :)

diff --git a/PKGBUILD b/PKGBUILD
index 8db6870..f895762 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 pkgname=rust-analyzer-nightly-bin
-pkgver=0.4.1175standalone
+pkgver=0.4.1428standalone
 pkgrel=1
 pkgdesc="An experimental Rust compiler front-end for IDEs (nightly)"
-arch=('x86_64' 'i686')
+arch=('x86_64' 'i686' 'aarch64')
 url="https://github.com/rust-analyzer/rust-analyzer"
 license=('MIT')
 depends=()
@@ -10,8 +10,12 @@ makedepends=()
 optdepends=()
 provides=('rust-analyzer')
 conflicts=('rust-analyzer')
-source=(rust-analyzer.gz::https://github.com/rust-lang/rust-analyzer/releases/download/nightly/rust-analyzer-x86_64-unknown-linux-gnu.gz)
-sha256sums=('SKIP')
+source_x86_64=(rust-analyzer.gz::https://github.com/rust-lang/rust-analyzer/releases/download/nightly/rust-analyzer-x86_64-unknown-linux-gnu.gz)
+source_i686=(rust-analyzer.gz::https://github.com/rust-lang/rust-analyzer/releases/download/nightly/rust-analyzer-x86_64-unknown-linux-gnu.gz)
+source_aarch64=(rust-analyzer.gz::https://github.com/rust-lang/rust-analyzer/releases/download/nightly/rust-analyzer-aarch64-unknown-linux-gnu.gz)
+sha256sums_x86_64=('SKIP')
+sha256sums_i686=('SKIP')
+sha256sums_aarch64=('SKIP')

 pkgver() {
     chmod +x rust-analyzer
-- 
2.39.2

BigfootLives commented on 2022-06-11 13:54 (UTC)

An oversight in pkgver currently prevents this from building. It can be fixed with the following patch:

diff --git a/PKGBUILD b/PKGBUILD
index a043a56..80849a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,5 +16,5 @@ sha256sums=('SKIP')
 pkgver() {
     chmod +x rust-analyzer
-    ./rust-analyzer --version | cut -d' ' -f3 | sed 's/-//g'
+    ./rust-analyzer --version | cut -d' ' -f3 | tr -d "(-"
 }