void-packages/srcpkgs/rust-analyzer/template

23 lines
630 B
Bash

# Template file for 'rust-analyzer'
pkgname=rust-analyzer
version=2020.10.26
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=492d7c272aecb5d346b95c727e0efce8b5b2e44675c0be59fc6b69a9606a78be
export RUST_ANALYZER_REV=${_ver}
post_install() {
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vdoc README.md
}