63 lines
2.1 KiB
Bash
63 lines
2.1 KiB
Bash
# Template file for 'cargo-bootstrap'
|
|
pkgname=cargo-bootstrap
|
|
version=1.73.0
|
|
revision=1
|
|
short_desc="Bootstrap binaries of Rust package manager"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT, Apache-2.0"
|
|
homepage="https://www.rust-lang.org/"
|
|
conflicts="cargo>=0"
|
|
lib32disabled=yes
|
|
nostrip=yes
|
|
repository=bootstrap
|
|
|
|
_bootstrap_url="https://static.rust-lang.org/dist"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686) ;;
|
|
# See srcpkgs/rust-bootstrap/files/generating-distfiles.md for details
|
|
*) _bootstrap_url="https://repo-default.voidlinux.org/distfiles" ;;
|
|
esac
|
|
|
|
# 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="8780f10eb3565b47f2616ccc1616c1a491a12a055976a25de551cb29e7f50390"
|
|
;;
|
|
x86_64)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-x86_64-unknown-linux-gnu.tar.xz"
|
|
checksum="7c3ce5738d570eaea97dd3d213ea73c8beda4f0c61e7486f95e497b7b10c4e2d"
|
|
;;
|
|
x86_64-musl)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-x86_64-unknown-linux-musl.tar.xz"
|
|
checksum="7e17d4e03d5a949e73d02866589e2010e8a070e025ead08a2030d8d8dc002054"
|
|
;;
|
|
# placeholders for user-supplied distfiles
|
|
ppc64le)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-powerpc64le-unknown-linux-gnu.tar.xz"
|
|
checksum="badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb"
|
|
;;
|
|
ppc64le-musl)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-powerpc64le-unknown-linux-musl.tar.xz"
|
|
checksum="badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb"
|
|
;;
|
|
ppc64)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-powerpc64-unknown-linux-gnu.tar.xz"
|
|
checksum="badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb"
|
|
;;
|
|
ppc)
|
|
distfiles="${_bootstrap_url}/cargo-${version}-powerpc-unknown-linux-gnu.tar.xz"
|
|
checksum="badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb"
|
|
;;
|
|
*) 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
|
|
}
|