#!/usr/bin/make -f #export DH_VERBOSE=1 bridgeCstrDir:=sat/bridge/bridge_constructor export PYTHONPATH=$(CURDIR)/sat_tmp:$(CURDIR) export XDG_DATA_HOME=$(CURDIR)/.local/share # Install scripts in different directory than libs because entrypoint # sat collides with directory sat. PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/salutatoi/ --install-scripts=/launchers/ ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) PYBUILD_INSTALL_ARGS+=--verbose endif export PYBUILD_INSTALL_ARGS %: dh $@ --with python3 --buildsystem=pybuild execute_before_dh_auto_build: cd $(bridgeCstrDir) && \ ln -s ../../../sat . && \ ./bridge_constructor.py --force && \ cp generated/dbus_bridge.py .. && \ ./bridge_constructor.py -s frontend --force && \ cp generated/dbus_bridge.py ../../../sat_frontends/bridge/ rm -f $(bridgeCstrDir)/sat execute_after_dh_auto_install: find sat_tmp \( -name LICENSE -o -name README \) -delete cp -rap sat_tmp/sat_tmp/ $(CURDIR)/debian/tmp/usr/share/salutatoi/ mv $(CURDIR)/debian/tmp/usr/share/salutatoi/sat/core/launcher.py \ $(CURDIR)/debian/tmp/usr/share/salutatoi find debian -name __pycache__ -type d | xargs rm -rf execute_after_dh_fixperms: chmod +x $(CURDIR)/debian/sat-xmpp-core/usr/share/salutatoi/launcher.py # temporarily ignore tests (completely broken according to upstream) override_dh_auto_test: dh_auto_test || true