sccache: fix up build options

This commit is contained in:
Danny Rawlins 2021-01-02 17:53:41 +11:00
parent 361a82eb16
commit e8c67c9590
2 changed files with 10 additions and 9 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF363+Dt92dny00ftyRHgciZfS9dyE/+dm7pC0RtP9RvnfyBFAu2CzjmkwrGGxv1LxlA6zUZRtI0j2wv8W0j3F1AM=
SHA256 (Pkgfile) = 267965ca4cb6e9dc3862ce2d17157bf2d832897128ad14ae33e964a95ee843c2
RWSagIOpLGJF3+7qTlwpN8Da4X3e6O3CCrbO7hprGgIhr6zDOuXIM/ao6VSm2DuXfdr8XOHJby+7E6m/DZA9lJSag94YXRd+FAI=
SHA256 (Pkgfile) = caf685050c945805270b1a3bd460ddca0a569924b3d16c3f3cad8e86c51c8a1f
SHA256 (.footprint) = faf777b374273121eaa06a3f627d66169ce6db1948d7cd60994b641e88e88f09
SHA256 (sccache-0.2.14.tar.gz) = 664f1557430056960261cac6f939c6d7bbd746b1e4bc88f79edcac40417bb654

View File

@ -5,18 +5,19 @@
name=sccache
version=0.2.14
release=1
release=2
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}
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
}