| 1 | #!/usr/bin/make -f |
| 2 | # See debhelper(7) (uncomment to enable) |
| 3 | # output every command that modifies files on the build system. |
| 4 | #export DH_VERBOSE = 1 |
| 5 | |
| 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* |
| 7 | DPKG_EXPORT_BUILDFLAGS = 1 |
| 8 | include /usr/share/dpkg/default.mk |
| 9 | |
| 10 | # Tests may fail due to stupid Python UnicodeEncodeError exceptions |
| 11 | # otherwise. |
| 12 | export LC_ALL=C.UTF-8 |
| 13 | |
| 14 | # main packaging script based on dh7 syntax |
| 15 | %: |
| 16 | dh $@ --with=python3 --buildsystem=pybuild |
| 17 | |
| 18 | execute_after_dh_auto_install: |
| 19 | find ./debian -type f -name "LICENSE" -delete |
| 20 | |
| 21 | override_dh_install: |
| 22 | dh_install -X/usr/share/doc/ |
| 23 | |
| 24 | override_dh_auto_test: |
| 25 | PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} run_tests.py" dh_auto_test |