contrib/sccache/Pkgfile

23 lines
565 B
Plaintext
Raw Normal View History

2018-12-26 21:18:12 +11:00
# 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
2019-10-12 19:53:17 +11:00
version=0.2.12
2018-12-26 21:18:12 +11:00
release=1
source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
2019-07-20 16:04:54 +10:00
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
2018-12-26 21:18:12 +11:00
2019-07-20 16:04:54 +10:00
cargo fetch
2018-12-26 21:18:12 +11:00
cargo build --release
2019-07-20 16:04:54 +10:00
cargo install --path . --root $PKG/usr
2018-12-26 21:18:12 +11:00
rm $PKG/usr/.crates.toml
}