File: rules

package info (click to toggle)
python-cooler 0.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,600 kB
  • sloc: python: 11,033; makefile: 173; sh: 31
file content (24 lines) | stat: -rwxr-xr-x 625 bytes parent folder | download
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 {} \;