blob: edab8a7771c9884cfb133d979f6fd5ee8674e5eb (
plain)
1 # Description: Sccache is a ccache-like tool
2 # URL: https://github.com/mozilla/sccache
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: rust
5
6 name=sccache
7 version=0.3.0
8 release=1
9 source=(https://github.com/mozilla/sccache/archive/v$version/$name-v$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 build --manifest-path $name-$version/Cargo.toml --release \
17 --features all --features native-zlib
18 cargo install --path $name-$version --root $PKG/usr --no-track \
19 --features all --features native-zlib
20 }
|