#!/usr/bin/make -f #export DH_VERBOSE = 1 export PYBUILD_NAME=soxr export DEB_BUILD_MAINT_OPTIONS = hardening=+all export CMAKE_ARGS := -DCMAKE_VERBOSE_MAKEFILE=ON export DEB_CXXFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2 export PYBUILD_TEST_ARGS=-v %: dh $@ --with sphinxdoc --buildsystem=pybuild execute_before_dh_sphinxdoc: http_proxy='http://127.0.0.1:9/' python3 -m sphinx -d debian/doctrees \ -N -bhtml docs/ debian/python-soxr-doc/usr/share/doc/python-soxr-doc/html # Fix lintian privacy-breach-generic find debian/python-soxr-doc/ -name '*.html' -exec sed -i 's/.*https:\/\/img\.shields\.io\/.*//g' {} \; #Fix lintian font-in-non-font-package / package-installs-python-pycache-dir /extra-license-file find debian/python-soxr-doc/ -type d -name webfonts -exec rm -r {} + find debian/python-soxr-doc/ -type d -name __pycache__ -exec rm -r {} + find debian/python-soxr-doc/ -name 'LICENSE.txt' -exec rm -r {} +