File: rules

package info (click to toggle)
chatty 0.8.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,180 kB
  • sloc: ansic: 57,069; sql: 5,122; xml: 158; cpp: 39; makefile: 26; sh: 11; lisp: 8; javascript: 6
file content (30 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq ($(filter pkg.chatty.nopurple,$(DEB_BUILD_PROFILES)),)
    MESON_OPTS += -Dpurple=disabled
else
    MESON_OPTS += -Dpurple=enabled
endif

%:
	dh $@ --builddirectory=_build

# Generate manpage with help2man
override_dh_installman:
	mkdir -p debian/chatty/usr/share/man/man1
	xvfb-run help2man --no-info --name "SMS/MMS and Matrix messaging" --section=1 \
		debian/chatty/usr/bin/chatty > \
		debian/chatty/usr/share/man/man1/chatty.1

override_dh_auto_configure:
	dh_auto_configure -- $(MESON_OPTS)

override_dh_shlibdeps:
	dh_shlibdeps -l/usr/lib/purple-2

# otherwise the tests running gtk-builder-tool to validate
# .ui files might fail
override_dh_auto_test:
	GTK_A11Y=none NO_AT_BRIDGE=1 LANGUAGE=C.UTF-8 xvfb-run -a -s "-noreset" dh_auto_test