Skip to content

Commit

Permalink
rust-sccache: update to 0.2.15, enable distributed builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Logarithmus committed Jul 27, 2021
1 parent bb1428a commit 828926e
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions srcpkgs/rust-sccache/template
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# Template file for 'rust-sccache'
pkgname=rust-sccache
version=0.2.13
revision=3
version=0.2.15
revision=1
wrksrc="${pkgname/rust-/}-${version}"
build_style=cargo
# test_rust_cargo: tests/test-crate directory exists in v0.2.15 tag on github,
# but is strangely missing from v0.2.15 on crates.io
make_check_args="-- --skip test_rust_cargo"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Sccache is a ccache-like tool"
checkdepends="cargo"
short_desc="Ccache-like tool for Rust, C/C++ & more"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Apache-2.0"
homepage="https://crates.io/crates/sccache"
distfiles="https://static.crates.io/crates/sccache/sccache-${version}.crate"
checksum=34b8eaab25eb467e9796c2f3ad7524c8548bf3afed962a922dd0b40ed2472ef7
checksum=cd1b19d56224beccdbf3fcc1fac1b21d58ddad64eed7fc1288db84d227bcebf7

case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|arm*|aarch64*) ;;
x86_64*) configure_args+=" --features dist-server" ;;
i686*|arm*|aarch64*) ;;
*) broken="ftbfs in ring" ;;
esac

pre_build() {
cargo update --package openssl-sys --precise 0.9.58
}
# test_sccache_command will fail if gcc/clang is actually a ccache wrapper
# requires fixing in upstream
if [ -n "$XBPS_CCACHE" ]; then
make_check_args+=" --skip test_sccache_command"
fi

0 comments on commit 828926e

Please sign in to comment.