File: rules

package info (click to toggle)
libpillowfight 0.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,724 kB
  • sloc: ansic: 3,365; python: 635; makefile: 110; sh: 7
file content (34 lines) | stat: -rwxr-xr-x 1,345 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
33
34
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=pypillowfight

src/pillowfight/_version.h: debian/_version.h.in
	sed 's,@DEB_VERSION_UPSTREAM@,$(DEB_VERSION_UPSTREAM),g' $< > $@

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
	dh $@ -p python3-pypillowfight --with python3
	dh $@ -p libpillowfight -p libpillowfight-dev --buildsystem=cmake

override_dh_auto_clean: src/pillowfight/_version.h
	dh_auto_clean
	rm -f src/pillowfight/_version.h

override_dh_auto_test:
	# We disable tests for now because they are not reproductible
	# They tend to produce different results on different machines
	# Upstream is aware of this problem (see https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/issues/15)
	# dh_auto_test -p python3-pypillowfight -O--buildsystem=pybuild

override_dh_auto_configure: src/pillowfight/_version.h
	dh_auto_configure -p libpillowfight -p libpillowfight-dev -O--buildsystem=cmake -- -DLIBDIR=lib/$(DEB_HOST_MULTIARCH)
	dh_auto_configure -p python3-pypillowfight -O--buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install -p libpillowfight -p libpillowfight-dev -O--buildsystem=cmake
	dh_auto_install -p python3-pypillowfight -O--buildsystem=pybuild