mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-10 20:45:10 +02:00
81 lines
2.3 KiB
Bash
81 lines
2.3 KiB
Bash
# Template file for 'rust-bootstrap'
|
|
pkgname=rust-bootstrap
|
|
version=1.61.0
|
|
revision=1
|
|
create_wrksrc=yes
|
|
short_desc="Rust programming language bootstrap toolchain"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="MIT, Apache-2.0"
|
|
homepage="https://www.rust-lang.org/"
|
|
conflicts="rust>=0"
|
|
lib32disabled=yes
|
|
nostrip=yes
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
depends="libexecinfo-devel"
|
|
fi
|
|
|
|
_bootstrap_url="https://static.rust-lang.org/dist"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686|ppc64le|ppc) ;;
|
|
*) _bootstrap_url="https://repo-default.voidlinux.org/distfiles";;
|
|
esac
|
|
|
|
distfiles="
|
|
${_bootstrap_url}/rustc-${version}-${RUST_TARGET}.tar.xz
|
|
${_bootstrap_url}/rust-std-${version}-${RUST_TARGET}.tar.xz"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686)
|
|
checksum="
|
|
8af0ec3eb470e7e28439fedf9ebdadf90df8c58da544cc643033e6fc0ccf0bea
|
|
ab223fcec35183bc0fe630403537cd7dae55c403103df29b25077db4882cb88e"
|
|
;;
|
|
x86_64)
|
|
checksum="
|
|
21c4613f389ed130fbaaf88f1e984319f72b5fc10734569a5ba19e22ebb03abd
|
|
270b07aa5f2de52255a117e1e587138d77375ce0d09a1d7fead085f29b3977e9"
|
|
;;
|
|
x86_64-musl)
|
|
checksum="
|
|
89cb72cbc493cb5cd8e43830009b4a1a5bfd472246ae184157868c9b0607bf6c
|
|
1f4f2e4c5dd0f9b0dac7c8888f4a49ef16a6fe8992f39895823d2a442f0fe408"
|
|
;;
|
|
ppc64le)
|
|
checksum="
|
|
dc54893d747e4f3330515caa75e404f78c6c5475a1216d1428f5e7ce1c2e9602
|
|
36c0ccff14c80419507561db050f9533f0abd43fc50f3ddb859c10df74b1c351"
|
|
;;
|
|
ppc64le-musl)
|
|
checksum="
|
|
2191613e654a192dc6dbab693ecb90a3669d7c71a29d392271138b3bb77fdb54
|
|
2a587565344e44bfa55e56df24e54f0f706e8280b3eccb45940af161205c9524"
|
|
;;
|
|
ppc64)
|
|
checksum="
|
|
070a334ecf824a99b89385f5b286632c3a7e88c921186f0cc75ede31501df3a3
|
|
0be4769a41fe2bcdcda2e5c92759826a59828615a5df057a09f2107dba888d72"
|
|
;;
|
|
ppc)
|
|
checksum="
|
|
f28a8c2986fce5015c67823e39ad4b53e2db06603b6ea4a1217ac961cbbfb073
|
|
7d2f7f900c8c05616fba8e99ab041d847af3653c259b99445edd788acddf878c"
|
|
;;
|
|
*) broken="rust bootstrap binaries unavailable for ${XBPS_TARGET_MACHINE}";;
|
|
esac
|
|
|
|
do_install() {
|
|
for d in *; do
|
|
cd $d
|
|
./install.sh --prefix=/usr --destdir="${DESTDIR}"
|
|
cd ..
|
|
done
|
|
|
|
vlicense rustc-${version}-${RUST_TARGET}/COPYRIGHT
|
|
vlicense rustc-${version}-${RUST_TARGET}/LICENSE-APACHE
|
|
vlicense rustc-${version}-${RUST_TARGET}/LICENSE-MIT
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc/rust
|
|
rm -f ${DESTDIR}/usr/lib/rustlib/${RUST_TARGET}/bin/rust-ll*
|
|
}
|