Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>"
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