proxmox-backup-restore-image/debian/rules
Fabian Grünbichler dd8070a7f8 build: use system toolchain and rust dependencies
instead of using crates.io - the build still requires network access and
depends on configured APT sources in the build environment, so there's room for
further improvement.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-30 11:13:02 +01:00

25 lines
544 B
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk
include /usr/share/rustc/architecture.mk
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
PATH := /usr/share/cargo/bin:$(PATH)
export PATH
export CARGO_HOME=$(CURDIR)/debian/cargo_home
export DEB_CARGO_CRATE=init-shim-rs
%:
dh $@
override_dh_auto_configure:
cargo prepare-debian $(CARGO_HOME)/registry --link-from-system
dh_auto_configure