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