File: rules

package info (click to toggle)
getmail6 6.18.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 996 kB
  • sloc: python: 5,905; sh: 664; makefile: 51
file content (20 lines) | stat: -rwxr-xr-x 784 bytes parent folder | download | duplicates (4)
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=getmail6

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

override_dh_auto_install:
	dh_auto_install --destdir debian/getmail6
	mv debian/getmail6/usr/share/doc/getmail-* \
		debian/getmail6/usr/share/doc/getmail6
	rm debian/getmail6/usr/share/doc/getmail6/CHANGELOG
	rm debian/getmail6/usr/share/doc/getmail6/COPYING

execute_after_dh_installdocs:
	# Fix file name to be getmailrc-examples.gz (Bug#463897 on original getmail)
	if [ -s debian/getmail6/usr/share/doc/getmail6/configuration.txt ]; then \
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/' debian/getmail6/usr/share/doc/getmail6/configuration.txt ;\
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/g' debian/getmail6/usr/share/doc/getmail6/configuration.html ; \
	fi