summaryrefslogtreecommitdiff
path: root/rust-analyzer/Pkgfile
blob: 260ef4846c7720072cf9118c311025d3c7618098 (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=2021-10-18
    8 release=1
    9 source=(https://github.com/rust-analyzer/rust-analyzer/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   13   mkdir "$PKGMK_SOURCE_DIR/rust" || true
   14   export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   15 
   16   #cargo update --manifest-path $name-$version/Cargo.toml
   17   cargo build --release --locked --manifest-path $name-$version/Cargo.toml
   18 
   19   install -Dt $PKG/usr/bin $name-$version/target/release/$name
   20 }

Generated by cgit