27 lines
682 B
Bash
27 lines
682 B
Bash
# Template file for 'rust-analyzer'
|
|
pkgname=rust-analyzer
|
|
version=2021.02.22
|
|
revision=1
|
|
_ver=${version//./-}
|
|
wrksrc="${pkgname}-${_ver}"
|
|
build_style=cargo
|
|
make_install_args="--path=crates/${pkgname}"
|
|
short_desc="Rust compiler front-end for IDEs"
|
|
maintainer="Gabriel Sanches <gabriel@gsr.dev>"
|
|
license="Apache-2.0, MIT"
|
|
homepage="https://rust-analyzer.github.io/"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${_ver}.tar.gz"
|
|
checksum=dbd152018e8327427dfaf12e7887134e51ce2567f2f6ad603ca0967f9370e92d
|
|
|
|
export RUST_ANALYZER_REV=${_ver}
|
|
|
|
do_check() {
|
|
: # tests require Rust source code
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
vdoc README.md
|
|
}
|