void-packages/srcpkgs/rust-sccache/template

28 lines
928 B
Bash

# Template file for 'rust-sccache'
pkgname=rust-sccache
version=0.5.4
revision=2
build_style=cargo
# 1. requires expensive extra feature 2. requires clang 3. requires libc
make_check_args="-- --skip test_s3_invalid_args --skip test_sccache_command
--skip dist::pkg::toolchain_imp::test_ldd_parse_v2_30"
hostmakedepends="pkg-config"
makedepends="openssl-devel libzstd-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"
changelog="https://github.com/mozilla/sccache/releases"
distfiles="https://static.crates.io/crates/sccache/sccache-${version}.crate"
checksum=b1211a5c7a6dcbb1ef3fab4f3b0f194f05d9ee3a65f7001a908fda5ed61732ad
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
}