diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..a3156c4c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +etm-powersync-plugins (1.15.0+etm1) trixie; urgency=medium + + * Initial ETM packaging of the openmeteo integration plugin. + * Built against nymea 1.15.0. + + -- ETM-Schurig SARL Sun, 31 May 2026 10:00:00 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..faa635d7 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: etm-powersync-plugins +Section: utils +Priority: optional +Maintainer: ETM-Schurig SARL +Standards-Version: 4.7.2 +Homepage: https://etm-powersync.fr +Vcs-Git: https://git.etm-powersync.fr/ETM-Schurig/etm-powersync-plugins.git +Build-depends: debhelper, + pkg-config, + libnymea-dev, + nymea-dev-tools:native, + qt6-base-dev, + qt6-base-dev-tools, + + +Package: powersync-plugin-openmeteo +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, + ${misc:Depends}, +Description: PowerSync integration plugin for Open-Meteo weather data + This package contains the nymea integration plugin to fetch weather and solar + forecast data from the Open-Meteo online service, for use by the ETM PowerSync + home energy management system. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..f4621290 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: etm-powersync-plugins +Source: https://git.etm-powersync.fr/ETM-Schurig/etm-powersync-plugins + +Files: * +Copyright: 2026 ETM-Schurig SARL +License: GPL-3 + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, version 3 of the License. + . + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file /usr/share/common-licenses/GPL-3. diff --git a/debian/powersync-plugin-openmeteo.install.in b/debian/powersync-plugin-openmeteo.install.in new file mode 100644 index 00000000..5c5ae426 --- /dev/null +++ b/debian/powersync-plugin-openmeteo.install.in @@ -0,0 +1 @@ +usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/libnymea_integrationpluginopenmeteo.so diff --git a/debian/rules b/debian/rules new file mode 100644 index 00000000..2bc7d45b --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +export DH_VERBOSE=1 +export QT_QPA_PLATFORM=minimal + +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 lrelease + +override_dh_install: $(PREPROCESS_FILES:.in=) + dh_install + +override_dh_auto_clean: + dh_auto_clean + find -name *plugininfo.h -exec rm {} \; + find -name *.qm -exec rm {} \; + rm -rf $(PREPROCESS_FILES:.in=) + +%: + dh $@ --buildsystem=qmake6 --parallel diff --git a/etm-powersync-plugins.pro b/etm-powersync-plugins.pro index 4a8e4ebe..a0fca119 100644 --- a/etm-powersync-plugins.pro +++ b/etm-powersync-plugins.pro @@ -8,17 +8,12 @@ PLUGIN_DIRS = \ message(============================================) message("Qt version:" $$[QT_VERSION]) -!greaterThan(QT_MAJOR_VERSION, 5) { - PLUGIN_DIRS += \ - bimmerconnected \ - dht \ - fastcom \ - mcp3008 \ - neatobotvac \ - sunposition \ -} else { - message("Python plugin disabled for Qt 6") -} +# !greaterThan(QT_MAJOR_VERSION, 5) { +# PLUGIN_DIRS += \ +# bimmerconnected \ +#} else { +# message("Python plugin disabled for Qt 6") +#} plugininfo.depends = FORCE for (entry, PLUGIN_DIRS):plugininfo.commands += test -d $${entry} || mkdir -p $${entry}; cd $${entry} && qmake -o Makefile $$PWD/$${entry}/$${entry}.pro && cd ..;