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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# lots of deprecation warnings, so disable them for now
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-deprecated -Wno-deprecated-declarations
%:
dh $@ --with kf5
override_dh_auto_configure:
dh_auto_configure -Skf5 -- -DBUILD_TESTING=OFF -DBUILD_app_cstester=OFF -DBUILD_app_devtools=OFF -DCALLIGRA_SHOULD_BUILD_UNMAINTAINED=ON
execute_after_dh_auto_install:
# Remove development symlinks of libraries
find debian/tmp/usr/lib -name '*.so' -type l -print -delete
# Remove stuff belonging to unported calligraflow
rm -f debian/tmp/usr/lib/*/qt5/plugins/calligra/formatfilters/calligra_filter_vsdx2odg.so
rm -f debian/tmp/usr/lib/*/qt5/plugins/calligra/formatfilters/calligra_filter_wpg2odg.so
rm -f debian/tmp/usr/share/kservices5/flow_vsdx_thumbnail.desktop
rm -f debian/tmp/usr/share/kservices5/flow_wpg_thumbnail.desktop
# Remove translations of stuff not shipped
rm -f debian/tmp/usr/share/locale/*/LC_MESSAGES/braindump.mo
rm -f debian/tmp/usr/share/locale/*/LC_MESSAGES/calligra_semanticitem_*.mo
rm -f debian/tmp/usr/share/locale/*/LC_MESSAGES/calligra_shape_comment.mo
rm -f debian/tmp/usr/share/locale/*/LC_MESSAGES/calligra_shape_template.mo
# Remove color profiles, which ideally should be shipped somewhere ...
rm -rf debian/tmp/usr/share/color/
.PHONY: override_dh_auto_test
|