contrib/sccache/Pkgfile

23 lines
583 B
Plaintext
Raw Normal View History

2018-12-26 11:18:12 +01: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
2020-03-14 09:30:13 +01:00
version=0.2.13
2018-12-26 11:18:12 +01:00
release=1
source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
2020-03-14 09:30:13 +01:00
prt-get isinst sccache && export RUSTC_WRAPPER='/usr/bin/sccache'
2019-07-20 08:04:54 +02:00
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
2018-12-26 11:18:12 +01:00
2019-07-20 08:04:54 +02:00
cargo fetch
2018-12-26 11:18:12 +01:00
cargo build --release
2019-07-20 08:04:54 +02:00
cargo install --path . --root $PKG/usr
2020-03-14 09:30:13 +01:00
rm $PKG/usr/{.crates.toml,.crates2.json}
2018-12-26 11:18:12 +01:00
}