contrib/sccache/Pkgfile

27 lines
908 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
2021-01-23 10:15:23 +01:00
version=0.2.15
release=2
2021-01-23 10:15:23 +01:00
source=(https://github.com/mozilla/sccache/archive/v$version/$name-v$version.tar.gz)
2018-12-26 11:18:12 +01:00
build() {
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
# warning: package `futures v0.3.9` in Cargo.lock is yanked in registry
cargo update --manifest-path $name-$version/Cargo.toml --package futures:0.3.9
2021-01-02 07:53:41 +01:00
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
2018-12-26 11:18:12 +01:00
}