diff --git a/srcpkgs/cargo-bootstrap/template b/srcpkgs/cargo-bootstrap/template index 4e39b797a03..9da646a63ad 100644 --- a/srcpkgs/cargo-bootstrap/template +++ b/srcpkgs/cargo-bootstrap/template @@ -23,28 +23,35 @@ case "$XBPS_TARGET_MACHINE" in *) _bootstrap_url="https://repo-default.voidlinux.org/distfiles" ;; esac -distfiles="${_bootstrap_url}/cargo-${version}-${RUST_TARGET}.tar.xz" - +# hardcode platform triplets +# because this info isn't avaialble here without hacky workarounds case "$XBPS_TARGET_MACHINE" in i686) + distfiles="${_bootstrap_url}/cargo-${version}-i686-unknown-linux-gnu.tar.xz" checksum="e2e20a16f5db52cd6b773c94225b03880743544ff2f317dd857cf0dceac6ab57" ;; x86_64) + distfiles="${_bootstrap_url}/cargo-${version}-x86_64-unknown-linux-gnu.tar.xz" checksum="21434d83a30ad3fa4e4831487c5574a20b07dd57d213b26e1246290c57d4ec41" ;; x86_64-musl) + distfiles="${_bootstrap_url}/cargo-${version}-x86_64-unknown-linux-musl.tar.xz" checksum="01d06176fd894b9299ed4f5b78e87d78a9a25b9ba803d3f8c50b7a4ea21d8807" ;; ppc64le) + distfiles="${_bootstrap_url}/cargo-${version}-powerpc64le-unknown-linux-gnu.tar.xz" checksum="ba7188b2c7890e61bf58d3aa9e94c323fec375f67cf03841bbcc0f6c800fe6ad" ;; ppc64le-musl) + distfiles="${_bootstrap_url}/cargo-${version}-powerpc64le-unknown-linux-musl.tar.xz" checksum="1b54ab4793ac6c9c43ee9ee45677f403a9bba9c6610e8838c96ec194bcb4f261" ;; ppc64) + distfiles="${_bootstrap_url}/cargo-${version}-powerpc64-unknown-linux-gnu.tar.xz" checksum="96ce39dac948333b8321d2bc3ac70982879b185d69267f3d580df3f9c662dd0d" ;; ppc) + distfiles="${_bootstrap_url}/cargo-${version}-powerpc-unknown-linux-gnu.tar.xz" checksum="c7aa415b64b046626003fcafc76da90373adc8fc748f065fa8385dc19d3b3a2a" ;; *) broken="cargo bootstrap binaries unavailable for ${XBPS_TARGET_MACHINE}";;