New package: rust-bootstrap-1.57.0

This commit is contained in:
q66 2022-01-04 04:49:58 +01:00
parent ffa1bc2a7a
commit 20f1c01304
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,80 @@
# Template file for 'rust-bootstrap'
pkgname=rust-bootstrap
version=1.57.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_MACHINE" in
x86_64*|i686|ppc64le|ppc) ;;
*) _bootstrap_url="https://alpha.de.repo.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="
9bade3fcd246b0ad6859fcf5d0a80d3eb833e5410efa3a5552c241865562461e
586e7fd521a058cbf4778abb67d7d078dd4820d356351d0b6a719e21d00966db"
;;
x86_64)
checksum="
c42f40c5279a3a9d539cae93dbcab9d333777ad9a60a5b9f1086b874ef63db86
ccdc72d06c90841b7227ec3630337881eeda3da5fbe87328d2e9d705f6f8016c"
;;
x86_64-musl)
checksum="
5b04e0e0bbf140f7c49baa6280114c28f59f6de50481bdd45074eebf629c174c
818213a6444503ed6adf0231d3c71de990d4c26926c62e8c602bb7e2d636fb94"
;;
ppc64le)
checksum="
f43cb99109c3438c77c7079cdce4673df3320e310158e0b4d949c1babc4300fc
fc07eb3e9f3d227428cc5b53ca868e3de375bc198ce4dce7b87a9246e6fec81a"
;;
ppc64le-musl)
checksum="
6b48e521ba8a070a7b992595e82c5a164cc01c93bbd9a7b3d4db362f4b060df8
d7876e817fc95df2e81858fc9ddb95b10fb83b413277ea6dbdfa9a80fa0d990e"
;;
ppc64)
checksum="
2ea5b66d2cd8b9c251590fd5bd3e23cedec658b61f541e2824ce3fdcda263982
e9c1394771b1b24241d8938ad75c4a6ed8bfa043522c74767b3528f2289095c0"
;;
ppc)
checksum="
a1d7611b2d39224ba9a915009ae2a6639def42767370f50effd57770b3eb2150
bc117ce5f0c81d2e14ea2d1832c0e908b1153caf49f295a9d28af2128f5fae44"
;;
*) broken="rust bootstrap binaries unavailable for ${XBPS_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 -f ${DESTDIR}/usr/lib/rustlib/${RUST_TARGET}/bin/rust-ll*
}

View file

@ -0,0 +1,2 @@
site="https://github.com/rust-lang/rust/tags"
pattern='/archive/refs/tags/\K[\d\.]+(?=\.tar\.gz")'