| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/pkg-info.mk |
| 7 |
include /usr/share/dpkg/architecture.mk |
| 8 |
|
| 9 |
export PYBUILD_NAME=pypillowfight |
| 10 |
|
| 11 |
src/pillowfight/_version.h: debian/_version.h.in |
| 12 |
sed 's,@DEB_VERSION_UPSTREAM@,$(DEB_VERSION_UPSTREAM),g' $< > $@ |
| 13 |
|
| 14 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 15 |
%: |
| 16 |
dh $@ --with python3 |
| 17 |
|
| 18 |
override_dh_auto_clean: src/pillowfight/_version.h |
| 19 |
dh_auto_clean -p python3-pypillowfight -O--buildsystem=pybuild |
| 20 |
dh_auto_clean -p libpillowfight0 -p libpillowfight-dev -O--buildsystem=cmake |
| 21 |
rm -f src/pillowfight/_version.h |
| 22 |
|
| 23 |
override_dh_auto_configure: src/pillowfight/_version.h |
| 24 |
dh_auto_configure -p python3-pypillowfight -O--buildsystem=pybuild |
| 25 |
dh_auto_configure -p libpillowfight0 -p libpillowfight-dev -O--buildsystem=cmake |
| 26 |
|
| 27 |
override_dh_auto_build: |
| 28 |
dh_auto_build -p python3-pypillowfight -O--buildsystem=pybuild |
| 29 |
dh_auto_build -p libpillowfight0 -p libpillowfight-dev -O--buildsystem=cmake |
| 30 |
|
| 31 |
override_dh_auto_test: |
| 32 |
# We disable tests for now because they are not reproductible |
| 33 |
# They tend to produce different results on different machines |
| 34 |
# Upstream is aware of this problem (see https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/issues/15) |
| 35 |
# dh_auto_test -p python3-pypillowfight -O--buildsystem=pybuild |
| 36 |
|
| 37 |
override_dh_auto_install: |
| 38 |
dh_auto_install -p python3-pypillowfight -O--buildsystem=pybuild |
| 39 |
dh_auto_install -p libpillowfight0 -p libpillowfight-dev -O--buildsystem=cmake |