2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
6 include /usr
/share
/dpkg
/pkg-info.mk
7 include /usr
/share
/rustc
/architecture.mk
9 export BUILD_MODE
=release
11 CARGO
=/usr
/share
/cargo
/bin
/cargo
13 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
14 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
15 export CARGO_HOME
= $(CURDIR
)/debian
/cargo_home
17 export DEB_CARGO_CRATE
=proxmox-termproxy_
$(DEB_VERSION_UPSTREAM
)
18 export DEB_CARGO_PACKAGE
=proxmox-termproxy
23 override_dh_auto_configure
:
24 @perl
-ne
'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \
25 die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml
26 $(CARGO
) prepare-debian
$(CURDIR
)/debian
/cargo_registry
--link-from-system
30 dh_missing
--fail-missing