void-packages/srcpkgs/rust-analyzer/template

27 lines
682 B
Bash

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