File debian.rules of Package rust-bin-aarch64
#!/usr/bin/make -f
export DH_VERBOSE=1
#export DH_OPTIONS=-v
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_prep:
./install.sh --prefix=debian/rust-bin/usr --components=rustc,cargo,rust-std-$(RUST_ARCH)-unknown-linux-gnu
override_dh_dwz:
override_dh_strip:
#pass
ifeq ($(DEB_BUILD_ARCH_CPU), amd64)
RUST_ARCH := x86_64
else ifeq ($(DEB_BUILD_ARCH_CPU), aarch64)
RUST_ARCH := aarch64
else ifeq ($(DEB_BUILD_ARCH_CPU), arm64)
RUST_ARCH := aarch64
else
$(error unrecognized build host instruction set $(DEB_HOST_ARCH_CPU)!)
endif