File: rules

package info (click to toggle)
astroidmail 0.14-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,060 kB
  • sloc: cpp: 20,443; ansic: 1,593; python: 93; sh: 70; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 747 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

# resolve if release is experimental
include /usr/share/dpkg/pkg-info.mk
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))

%:
	dh $@ --parallel

# use virtual X11 and UTF-8 in testsuite
# create fake $HOME to please gnupg2
# ignore testuite failure when targeting experimental
override_dh_auto_test:
	mkdir debian/tmphome
	HOME=debian/tmphome LC_ALL=C.UTF-8 xvfb-run -a \
		dh_auto_test --no-parallel $(if $(EXP_RELEASE), || true)
	rm -rf debian/tmphome

# avoid (seemingly) superfluous files
override_dh_auto_install:
	dh_auto_install
	rm debian/astroid/usr/share/astroid/ui/icons/LICENSE
	rm debian/astroid/usr/share/gir-1.0/Astroid-0.2.gir
	rm debian/astroid/usr/lib/girepository-1.0/Astroid-0.2.typelib