diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 6cd8c0f6..e474bf7b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,29 @@ #!/usr/bin/make -f include /usr/share/dpkg/default.mk +include /usr/share/rustc/architecture.mk + +export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS +export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE export PYBUILD_NAME=matrix-synapse + +export PATH := /usr/share/cargo/bin:$(PATH) + +export CARGO=/usr/share/cargo/bin/cargo +export CARGO_HOME=$(CURDIR)/debian/cargo_home + +export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) + %: dh $@ --buildsystem=pybuild execute_before_dh_auto_configure: sed -i '/common/s/~=/>=/' pyproject.toml + $(CARGO) prepare-debian debian/cargo_registry --link-from-system + +execute_after_dh_auto_clean: + rm -rf debian/cargo_registry override_dh_auto_install: dh_auto_install |