File: rules

package info (click to toggle)
python-pairix 0.3.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 179,652 kB
  • sloc: ansic: 5,553; python: 1,197; sh: 613; perl: 464; makefile: 63
file content (16 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_NAME=pairix

export PYBUILD_BEFORE_TEST=cp -a $(CURDIR)/samples {build_dir}; cp -a $(CURDIR)/VERSION.txt {build_dir};

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_install:
	tar caf samples.tar.xz samples --mode=go=rX,u+rw,a-s --owner=0 --group=0 --numeric-owner
	dh_install
	find debian/python3-$(PYBUILD_NAME)/usr/lib -name samples -type d | xargs rm -rf
	find debian/*/usr/lib -name VERSION.txt -delete