void-packages/srcpkgs/rust-analyzer/template
2021-07-06 23:09:06 -03:00

24 lines
677 B
Bash

# Template file for 'rust-analyzer'
pkgname=rust-analyzer
version=2021.07.05
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=0d854f2f6b3f1dbebfb1c9f121dc8914aca847aad055589c0d87a38229a66679
# tests require Rust source code
make_check=no
export RUST_ANALYZER_REV=${_ver}
post_install() {
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vdoc README.md
}