1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
# DH_VERBOSE := 1
export PYBUILD_NAME=cooler
export BUILDDIR = {build_dir}
%:
dh $@ --buildsystem=pybuild
EXAMPLES_DIR = $(CURDIR)/debian/python3-$(PYBUILD_NAME)-examples
execute_after_dh_installexamples-indep:
cd $(EXAMPLES_DIR)/usr/share/doc/python3-$(PYBUILD_NAME) \
&& tar --create \
--owner=0 --group=0 --numeric-owner \
--sort=name --mtime="@$(SOURCE_DATE_EPOCH)" \
--mode=u=wrX,og=rX \
--xz \
--file tests.tar.xz tests \
&& rm -rf tests
override_dh_fixperms:
dh_fixperms
find debian -type f -path "*/cli/*" \( -name "makebins.py" -o -name "balance.py" \) -exec chmod 0644 {} \;
|