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="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"
|
|
|
|
case "${MACHINE_HARDWARE_NAME}" in
|
|
"aarch64")
|
|
PKG_SHA256="1195a1d37280802574d729cf00e0dadc63a7c9312a9ae3ef2cf99645f7be0a77"
|
|
PKG_URL="https://static.rust-lang.org/dist/cargo-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnu.tar.xz"
|
|
;;
|
|
"arm")
|
|
PKG_SHA256="fa81a1431d26d77e56c73c5c7360f851e6f3c60867f36dfb62088634fcf30f6e"
|
|
PKG_URL="https://static.rust-lang.org/dist/cargo-${PKG_VERSION}-${MACHINE_HARDWARE_NAME}-unknown-linux-gnueabihf.tar.xz"
|
|
;;
|
|
"x86_64")
|
|
PKG_SHA256="7c3ce5738d570eaea97dd3d213ea73c8beda4f0c61e7486f95e497b7b10c4e2d"
|
|
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"
|