File: rules

package info (click to toggle)
python-taskchampion-py 2.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: python: 682; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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