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 35 36 37
|
#!/usr/bin/make -f
export PYBUILD_NAME=openlp
export PYBUILD_TEST_ARGS= -k 'not test_load_settings_position_invalid and not test_get_directory_for_language_dir_from_source and not test_get_ip_address_default'
export GITLAB_CI=disable_test_downloads
%:
dh $@ --with python3 --buildsystem=pybuild
execute_before_dh_auto_build:
# Do the functionally equivalent to scripts/generate_resources.sh upfront:
rcc -g python -o openlp/core/resources.py resources/images/openlp-2.qrc
sed -i '/^qInitResources\(\)/d' openlp/core/resources.py
sed -i 's/PySide2/PyQt5/g' openlp/core/resources.py
execute_after_dh_auto_build:
mkdir -p resources/i18n/qm
set -e; \
export QT_SELECT=5; \
for TSFILE in resources/i18n/*.ts; do \
lrelease $$TSFILE -qm resources/i18n/qm/`basename $$TSFILE .ts`.qm; \
done
override_dh_auto_test:
QT_QPA_PLATFORM=offscreen dh_auto_test
-find -name openlp-test-projectordb.sqlite -delete
execute_after_dh_install:
set -e; \
for SIZE in 16x16 32x32 48x48 64x64 128x128; do \
mkdir -p debian/openlp/usr/share/icons/hicolor/$$SIZE/apps && \
cp resources/images/openlp-logo-$$SIZE.png debian/openlp/usr/share/icons/hicolor/$$SIZE/apps/openlp.png; \
done
mkdir -p debian/openlp/usr/share/icons/hicolor/scalable/apps
cp resources/images/openlp-logo.svg debian/openlp/usr/share/icons/hicolor/scalable/apps/openlp.svg
rm -fr debian/openlp/usr/share/openlp/resources
rm -fr debian/openlp/usr/share/openlp/openlp/plugins/remotes/html/images
|