File: rules

package info (click to toggle)
dia 0.98%2Bgit20260221-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 52,136 kB
  • sloc: ansic: 156,533; xml: 14,063; python: 6,250; cpp: 3,647; sh: 447; perl: 137; makefile: 33
file content (32 lines) | stat: -rwxr-xr-x 809 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
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DPKG_EXPORT_BUILDFLAGS = 1

# Make reproducible PDF
# (PDF documentation contains \today macro)
export FORCE_SOURCE_DATE = 1

include /usr/share/dpkg/buildflags.mk

%:
	dh $@


ifneq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
override_dh_auto_configure:
	dh_auto_configure -- -Dtests=false
endif

override_dh_auto_install:
	dh_auto_install
	chmod a-x debian/tmp/usr/share/dia/shapes/Civil/civil_aerator.shape

# Taken from https://salsa.debian.org/gnome-team/epiphany-browser/-/commit/3b48e614e9f161e0f9a4ab0f309305040e2a6168
override_dh_auto_test:
	dbus-run-session -- \
        xvfb-run -a -s "-screen 0 1024x768x24 -noreset" -e /proc/self/fd/2 \
        dh_auto_test