diff --git a/srcpkgs/rust-analyzer/template b/srcpkgs/rust-analyzer/template new file mode 100644 index 00000000000000..237475e6c4f807 --- /dev/null +++ b/srcpkgs/rust-analyzer/template @@ -0,0 +1,21 @@ +# Template file for 'rust-analyzer' +pkgname=rust-analyzer +version=2020.07.13 +revision=1 +_ver=${version//./-} +wrksrc="${pkgname}-${_ver}" +build_style=cargo +make_install_args="--path=crates/${pkgname}" +hostmakedepends="rust" +short_desc="Rust compiler front-end for IDEs" +maintainer="Gabriel Sanches " +license="Apache-2.0, MIT" +homepage="https://rust-analyzer.github.io/" +distfiles="https://github.com/${pkgname}/${pkgname}/archive/${_ver}.tar.gz" +checksum=e4176167bba26eeb7bc7bbf5be45d261e05e231331135dfbc6f12f927ac6eb60 + +post_install() { + vlicense LICENSE-APACHE + vlicense LICENSE-MIT + vdoc README.md +}