58 lines
1.7 KiB
Bash
58 lines
1.7 KiB
Bash
# Template file for 'cargo-bootstrap'
|
|
pkgname=cargo-bootstrap
|
|
version=1.61.0
|
|
revision=1
|
|
short_desc="Bootstrap binaries of Rust package manager"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="MIT, Apache-2.0"
|
|
homepage="https://www.rust-lang.org/"
|
|
conflicts="cargo>=0"
|
|
lib32disabled=yes
|
|
nostrip=yes
|
|
|
|
_bootstrap_url="https://static.rust-lang.org/dist"
|
|
|
|
# we don't use upstream cargo binaries for ppc32, as they are busted (probably
|
|
# a dependency is wrong, which results in failed signature verification when
|
|
# updating the crates.io index)
|
|
# ppc64 is excluded because of ABI incompatibility
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686|ppc64le) ;;
|
|
*) _bootstrap_url="https://repo-default.voidlinux.org/distfiles" ;;
|
|
esac
|
|
|
|
wrksrc="cargo-${version}-${RUST_TARGET}"
|
|
distfiles="${_bootstrap_url}/cargo-${version}-${RUST_TARGET}.tar.xz"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686)
|
|
checksum="fe258b85ef0644ff08c2095e329399dd4de0e1b2e51f4f4e90cb956d40dc61de"
|
|
;;
|
|
x86_64)
|
|
checksum="9461727d754f865ef2a87479d40bbe4c5176f80963b7c50b7797bc8940d7a0a0"
|
|
;;
|
|
x86_64-musl)
|
|
checksum="db4b4423c2843b6e27737664cf8085afcba670374110ca24b9c8d341045e748c"
|
|
;;
|
|
ppc64le)
|
|
checksum="09817011ff1ef4b7006387c7cabb6a059731792a9372533dec7d87e7f014444b"
|
|
;;
|
|
ppc64le-musl)
|
|
checksum="39215cba9b1bda63209cac0edbda583e0c822f88a50fdbf33255c8c5386e4868"
|
|
;;
|
|
ppc64)
|
|
checksum="3fa6e033bbbab339e480842627523f95d84119a5dcae56ad4b14e5c6d1536e6b"
|
|
;;
|
|
ppc)
|
|
checksum="5d6226a5080e429cb6bb8366ff1f71feeccde70f8bf6651779674fe27eb35e7f"
|
|
;;
|
|
*) broken="cargo bootstrap binaries unavailable for ${XBPS_TARGET_MACHINE}";;
|
|
esac
|
|
|
|
do_install() {
|
|
vbin cargo/bin/cargo
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
vlicense LICENSE-THIRD-PARTY
|
|
}
|