blob: 0c0ccc406e20e8228a53fcc0ddc428ef73beefed (
plain)
1 # Description: Bringing a great IDE experience to the Rust programming language.
2 # URL: https://rust-analyzer.github.io/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=rust-analyzer
7 version=20220314
8 _version=${version::4}-${version:4:2}-${version:6:2}
9 release=1
10 source=(https://github.com/rust-analyzer/rust-analyzer/archive/$_version/$name-$version.tar.gz)
11
12 build() {
13 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
14 mkdir "$PKGMK_SOURCE_DIR/rust" || true
15 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
16
17 #cargo update --manifest-path $name-$version/Cargo.toml
18 cargo build --release --locked --manifest-path $name-$_version/Cargo.toml
19
20 install -Dt $PKG/usr/bin $name-$_version/target/release/$name
21 }
|