Patrick Schurig 54c378c550 deb: basculer sur debian-qt6 (hems = Qt6) + powersync-* + Provides/Conflicts/Replaces
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 16:39:29 +02:00

31 lines
669 B
Makefile
Executable File

#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
export QT_QPA_PLATFORM=minimal
export DH_OPTIONS=-N nymea-energy-tests
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
PREPROCESS_FILES := $(wildcard debian/*.in)
$(PREPROCESS_FILES:.in=): %: %.in
sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@
override_dh_auto_build:
dh_auto_build
make -C energyplugin lrelease
override_dh_auto_clean:
dh_auto_clean
rm -rf $(PREPROCESS_FILES:.in=)
override_dh_auto_test:
dh_auto_test -- -k -j1 TESTARGS="-maxwarnings 0"
override_dh_install: $(PREPROCESS_FILES:.in=)
dh_install
%:
dh $@ --buildsystem=qmake6 --parallel