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
|
2023-04-01 14:35:31 +02:00
|
|
|
version=0.4.1
|
2022-05-31 23:18:49 +02:00
|
|
|
release=1
|
2021-01-23 20:15:23 +11:00
|
|
|
source=(https://github.com/mozilla/sccache/archive/v$version/$name-v$version.tar.gz)
|
2018-12-26 21:18:12 +11:00
|
|
|
|
|
|
|
build() {
|
2020-03-14 19:30:13 +11:00
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER='/usr/bin/sccache'
|
2019-07-20 16:04:54 +10:00
|
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
2018-12-26 21:18:12 +11:00
|
|
|
|
2022-05-31 23:18:49 +02:00
|
|
|
cargo build --manifest-path $name-$version/Cargo.toml --release \
|
2021-01-02 17:53:41 +11:00
|
|
|
--features all --features native-zlib
|
2022-05-31 23:18:49 +02:00
|
|
|
cargo install --path $name-$version --root $PKG/usr --no-track \
|
2021-01-02 17:53:41 +11:00
|
|
|
--features all --features native-zlib
|
2018-12-26 21:18:12 +11:00
|
|
|
}
|