File: rules

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

export PYBUILD_NAME=chardet
export PYTHONWARNINGS=d

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

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_auto_build:
	dh_auto_build
	cp debian/chardet.1 debian/chardet3.1
	sed -i 's/chardet/chardet3/g' debian/chardet3.1

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-chardet/usr/bin/chardetect \
		debian/python3-chardet/usr/bin/chardetect3