27 lines
682 B
Bash
27 lines
682 B
Bash
# Template file for 'rust-analyzer'
|
|
pkgname=rust-analyzer
|
|
version=2021.02.01
|
|
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=8e977cff0d64bed30c5f1f7945889e3fa76e6e55bfed882d1b4a5d2ffd9efc2c
|
|
|
|
export RUST_ANALYZER_REV=${_ver}
|
|
|
|
do_check() {
|
|
: # tests require Rust source code
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
vdoc README.md
|
|
}
|