# 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.13 release=1 source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz) build() { cd $name-$version 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 cargo build --release cargo install --path . --root $PKG/usr rm $PKG/usr/{.crates.toml,.crates2.json} }