void-packages/srcpkgs/rust-analyzer/template

25 lines
677 B
Bash

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