2016-09-04 13:43:23 +00:00
|
|
|
#!/usr/bin/make -f
|
2018-03-13 12:30:03 +00:00
|
|
|
# See debhelper(7) (uncomment to enable)
|
2016-09-04 13:43:23 +00:00
|
|
|
# output every command that modifies files on the build system.
|
|
|
|
export DH_VERBOSE = 1
|
2018-03-13 12:31:24 +00:00
|
|
|
# Suppress __pycache__ pollution
|
|
|
|
export PYTHONDONTWRITEBYTECODE = 1
|
2016-09-04 13:43:23 +00:00
|
|
|
|
|
|
|
DEB_PACKAGE_VERSION ?= $(shell dpkg-parsechangelog -SVersion | cut -f2 -d":" | cut -f1 -d"~")
|
|
|
|
|
|
|
|
%:
|
2018-03-13 12:29:17 +00:00
|
|
|
dh $@ --buildsystem=cmake --with python3 --parallel
|
2016-09-04 13:43:23 +00:00
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
rm -fv debian/cura.sharedmimeinfo
|
2018-01-23 12:11:39 +00:00
|
|
|
patch --dry-run -Rf -i debian/patches/02-exclude-fonts.patch && patch -R -i debian/patches/02-exclude-fonts.patch || true
|
2016-09-04 13:43:23 +00:00
|
|
|
dh_clean -O--buildsystem=cmake -O--parallel
|
|
|
|
|
|
|
|
override_dh_install:
|
|
|
|
dh_install --fail-missing
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2018-01-23 12:11:39 +00:00
|
|
|
patch -f -i debian/patches/02-exclude-fonts.patch
|
2016-09-04 13:43:23 +00:00
|
|
|
dh_auto_configure -- \
|
2016-11-25 16:58:38 +00:00
|
|
|
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
|
|
|
|
-DURANIUM_SCRIPTS_DIR=/usr/share/uranium/scripts/ \
|
|
|
|
-DGETTEXT_MSGINIT_EXECUTABLE=/usr/bin/msginit \
|
2018-03-20 18:44:40 +00:00
|
|
|
-DCURA_VERSION="$(DEB_PACKAGE_VERSION)-PPA"
|
2016-09-04 13:43:23 +00:00
|
|
|
|
|
|
|
override_dh_installmime:
|
|
|
|
cp -fv cura.sharedmimeinfo debian/cura.sharedmimeinfo
|
|
|
|
dh_installmime -O--buildsystem=cmake -O--parallel
|
2017-10-03 21:54:09 +00:00
|
|
|
|
|
|
|
override_dh_auto_test:
|
2018-01-23 12:11:39 +00:00
|
|
|
dh_auto_test || true
|