File: rules

package info (click to toggle)
authheaders 0.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 508 kB
  • sloc: python: 830; makefile: 14; sh: 5
file content (20 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

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

override_dh_auto_configure:
	rm -rf authheaders.egg-info
	python3 setup.py psllocal --path='/usr/share/publicsuffix/public_suffix_list.dat'
	mv authheaders/findpsl.py debian

override_dh_auto_install:
	dh_auto_install
	rm -f debian/python3-authheaders/usr/lib/python*/dist-packages/authheaders/public_suffix_list.txt
	rm -rf debian/python3-authheaders/usr/lib/python*/dist-packages/authheaders/__pycache__
	mv debian/findpsl.py debian/python3-authheaders/usr/lib/python3*/dist-packages/authheaders

override_dh_auto_clean:
	dh_auto_clean
	rm -f authheaders/findpsl.py