summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db44104ce981abd07a7147c714bab27b3d3aaaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=rust-analyzer-nightly-bin
pkgver=20210519
pkgrel=1
pkgdesc="An experimental Rust compiler front-end for IDEs (nightly)"
arch=('x86_64' 'i686')
url="https://github.com/rust-analyzer/rust-analyzer"
license=('MIT')
depends=()
makedepends=()
optdepends=()
provides=('rust-analyzer')
conflicts=('rust-analyzer')
source=(https://github.com/rust-analyzer/rust-analyzer/releases/download/nightly/rust-analyzer-linux.gz)
sha256sums=('SKIP')

pkgver() {
    chmod a+x rust-analyzer-linux
    ./rust-analyzer-linux --version | cut -d' ' -f3 | sed 's/-//g'
}

package() {
	install -D -m755 "$srcdir/rust-analyzer-linux" "$pkgdir/usr/bin/rust-analyzer"
}