a6e69e4338
This one simply unsets and modifies some environment variables before running "cura.real". There are many problems with QML under KDE, but these disappear when running Cura on Gnome for example. So the problem was deskop related. Since KDE is being started using some startup scripts which set some environment variables, I simply looked for these, which disable the middleware by KDE. Now everything seems to work fine again! Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> (github: thopiekar)
43 lines
1.4 KiB
Makefile
Executable File
43 lines
1.4 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
#export DH_VERBOSE = 1
|
|
|
|
# Suppress __pycache__ pollution
|
|
export PYTHONDONTWRITEBYTECODE = 1
|
|
|
|
DEB_PACKAGE_VERSION ?= $(shell dpkg-parsechangelog -SVersion | cut -f2 -d":" | cut -f1 -d"~")
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake --with python3 --parallel
|
|
|
|
override_dh_clean:
|
|
rm -fv debian/cura.sharedmimeinfo
|
|
patch --dry-run -Rf -i debian/patches/02-exclude-fonts.patch && patch -R -i debian/patches/02-exclude-fonts.patch || true
|
|
dh_clean -O--buildsystem=cmake -O--parallel
|
|
|
|
override_dh_install:
|
|
dh_install --fail-missing
|
|
|
|
override_dh_auto_configure:
|
|
patch -f -i debian/patches/02-exclude-fonts.patch
|
|
dh_auto_configure -- \
|
|
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
|
|
-DURANIUM_SCRIPTS_DIR=/usr/share/uranium/scripts/ \
|
|
-DGETTEXT_MSGINIT_EXECUTABLE=/usr/bin/msginit \
|
|
-DCURA_VERSION="$(DEB_PACKAGE_VERSION)-PPA" \
|
|
-DCURA_SDK_VERSION=6.0.0
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
# Hacking Cura with some environment hacks for KDE
|
|
mv debian/tmp/usr/bin/cura debian/tmp/usr/bin/cura.real
|
|
cp -fv debian/cura.envhack debian/tmp/usr/bin/cura
|
|
|
|
override_dh_installmime:
|
|
cp -fv cura.sharedmimeinfo debian/cura.sharedmimeinfo
|
|
dh_installmime -O--buildsystem=cmake -O--parallel
|
|
|
|
override_dh_auto_test:
|
|
dh_auto_test || true
|