2022-09-01 12:19:58 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="cargo-snapshot"
|
|
|
|
PKG_VERSION="$(get_pkg_version rust)"
|
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
PKG_SITE="https://www.rust-lang.org"
|
|
|
|
PKG_LONGDESC="cargo bootstrap package"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
2023-08-24 09:53:35 +00:00
|
|
|
|
|
|
|
case "${MACHINE_HARDWARE_NAME}" in
|
|
|
|
"aarch64")
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_SHA256="1195a1d37280802574d729cf00e0dadc63a7c9312a9ae3ef2cf99645f7be0a77"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_URL="https://static.rust-lang.org/dist/cargo-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnu.tar.xz"
|
|
|
|
;;
|
|
|
|
"arm")
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_SHA256="fa81a1431d26d77e56c73c5c7360f851e6f3c60867f36dfb62088634fcf30f6e"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_URL="https://static.rust-lang.org/dist/cargo-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnueabihf.tar.xz"
|
|
|
|
;;
|
|
|
|
"x86_64")
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_SHA256="7c3ce5738d570eaea97dd3d213ea73c8beda4f0c61e7486f95e497b7b10c4e2d"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_URL="https://static.rust-lang.org/dist/cargo-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnu.tar.xz"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
PKG_SOURCE_NAME="cargo-snapshot_${PKG_VERSION}_${ARCH}.tar.xz"
|