contrib/sccache/Pkgfile
2021-01-23 20:15:23 +11:00

24 lines
754 B
Plaintext

# Description: Sccache is a ccache-like tool
# URL: https://github.com/mozilla/sccache
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: rust
name=sccache
version=0.2.15
release=1
source=(https://github.com/mozilla/sccache/archive/v$version/$name-v$version.tar.gz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER='/usr/bin/sccache'
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo fetch --manifest-path $name-$version/Cargo.toml --locked
cargo build --manifest-path $name-$version/Cargo.toml --release --frozen \
--features all --features native-zlib
cargo install --path $name-$version --root $PKG/usr --frozen --no-track --offline \
--features all --features native-zlib
}