#!/usr/bin/make -f include /usr/share/rustc/architecture.mk export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE export PYBUILD_NAME=taskchampion-py export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) export CARGO=/usr/share/cargo/bin/cargo export CARGO_HOME=$(shell pwd)/debian/cargo_home %: dh $@ --buildsystem=pybuild execute_before_dh_auto_configure: mv Cargo.lock Cargo.lock.orig $(CARGO) prepare-debian debian/cargo_registry --link-from-system execute_before_dh_auto_clean: if [ -f Cargo.lock.orig ] ; then mv Cargo.lock.orig Cargo.lock ; fi execute_after_dh_auto_install: /usr/share/cargo/bin/dh-cargo-built-using python3-taskchampion-py