1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/usr/bin/make -f
# set img2pdf location for pytest run by dh_auto_test
# we cannot use the version copied by pybuild into
# .pybuild/cpython3_3.8/build because that has the executable bit removed
export img2pdfprog = $(CURDIR)/src/img2pdf.py
%:
dh $@ --with python3 --buildsystem=pybuild
execute_before_dh_auto_clean:
rm -f img2pdf.1
execute_after_dh_auto_build:
help2man --no-info --name="lossless conversion of raster images to pdf" ./src/img2pdf.py | sed -e 's/\.py//ig;' > img2pdf.1
# skip tests so that we can test autopkgtest
override_dh_auto_test:
|