| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --with python3 |
| 5 |
|
| 6 |
# Note that debhelper does not support waf, so below all relevant build |
| 7 |
# steps are overridden to run waf instead of the default autodetected |
| 8 |
# buildsystem (setup.py probably). |
| 9 |
|
| 10 |
override_dh_auto_clean: |
| 11 |
python3 ./waf distclean |
| 12 |
rm -rf waflib/__pycache__ waflib/Tools/__pycache__ waflib/extras/__pycache__ |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
python3 ./waf configure --prefix=/usr --skip-icon-cache-update --skip-gsettings |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
python3 ./waf build |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
python3 ./waf install --destdir=debian/hamster-time-tracker |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
# Can't run tests, need installed gsetting schema |
| 25 |
# python3 -m unittest tests.test_stuff |
| 26 |
|
| 27 |
override_dh_installchangelogs: |
| 28 |
dh_installchangelogs NEWS.md |
| 29 |
|
| 30 |
execute_after_dh_python3: |
| 31 |
# Also scan this directory for python scripts |
| 32 |
dh_python3 /usr/libexec |