# Template file for 'rust-sccache'
pkgname=rust-sccache
version=0.3.3
revision=1
build_style=cargo
# fails in musl
make_check_args="-- --skip dist::pkg::toolchain_imp::test_ldd_parse_v2_30"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Sccache is a ccache-like tool"
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=6aae524ce9e447b7dbe9d43918827ede44d77591f820d843738d14b4f6195a4d

case "$XBPS_TARGET_MACHINE" in
	x86_64*|i686*|arm*|aarch64*) ;;
	*) broken="ftbfs in ring" ;;
esac

pre_check() {
	# tries to spawn /usr/bin/cargo and fails
	rm -f tests/sccache_cargo.rs
}
