25 lines
1 KiB
Makefile
25 lines
1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="rustc-snapshot"
|
|
PKG_VERSION="$(get_pkg_version rust)"
|
|
PKG_LICENSE="MIT"
|
|
PKG_SITE="https://www.rust-lang.org"
|
|
PKG_LONGDESC="rustc bootstrap compiler"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
case "${MACHINE_HARDWARE_NAME}" in
|
|
"aarch64")
|
|
PKG_SHA256="44a78d6643a2fc27324ec18e519f951bfa7e1040657fe9165c764375aea3b416"
|
|
PKG_URL="https://static.rust-lang.org/dist/rustc-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnu.tar.xz"
|
|
;;
|
|
"arm")
|
|
PKG_SHA256="9247eae46b8fb9a4313a83089eaa4e484ccbcdedd5889256bc4329f516db7e94"
|
|
PKG_URL="https://static.rust-lang.org/dist/rustc-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnueabihf.tar.xz"
|
|
;;
|
|
"x86_64")
|
|
PKG_SHA256="9a8a12b6c2a6f67d75ead0f343f891b78672c59387d1be28b46f3161ec2b251d"
|
|
PKG_URL="https://static.rust-lang.org/dist/rustc-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnu.tar.xz"
|
|
;;
|
|
esac
|
|
PKG_SOURCE_NAME="rustc-snapshot_${PKG_VERSION}_${ARCH}.tar.xz"
|