# Template file for 'rust-analyzer'
pkgname=rust-analyzer
version=2022.09.12
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/rust-lang/rust-analyzer/archive/${_ver}.tar.gz"
checksum=57937f90e7609cf5cfba1e1747c1552a9320693a1afed35cb50fecba97ca22d2
# tests require Rust source code
make_check=no

export CFG_RELEASE=${_ver}

post_install() {
	vlicense LICENSE-APACHE
	vlicense LICENSE-MIT
	vdoc README.md
}
