| 1 |
#!/usr/bin/make -f |
| 2 |
include /usr/share/dpkg/buildflags.mk |
| 3 |
export CARGO_NET_OFFLINE=true |
| 4 |
export PYBUILD_NAME=blake3 |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild |
| 8 |
|
| 9 |
override_dh_auto_clean: |
| 10 |
dh_auto_clean |
| 11 |
rm -rf target |
| 12 |
|
| 13 |
execute_before_dh_auto_configure: |
| 14 |
mkdir -pv .cargo |
| 15 |
cp debian/cargo-config.toml .cargo/config.toml |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
true |
| 19 |
|
| 20 |
execute_before_dh_auto_build: |
| 21 |
# blhc treats them as errors |
| 22 |
@echo 'blhc: ignore-line-regexp: .*Compiling\s+[a-zA-Z0-9_-]+\s+v[0-9.]+\s+.*' |
| 23 |
|