Add debian control files

This commit is contained in:
Patrick Schurig 2026-05-31 10:31:23 +02:00
parent fa3f29c0d0
commit 38ebc2b5f4
6 changed files with 78 additions and 11 deletions

6
debian/changelog vendored Normal file
View File

@ -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 <contact@etm-schurig.eu> Sun, 31 May 2026 10:00:00 +0200

24
debian/control vendored Normal file
View File

@ -0,0 +1,24 @@
Source: etm-powersync-plugins
Section: utils
Priority: optional
Maintainer: ETM-Schurig SARL <contact@etm-schurig.eu>
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.

13
debian/copyright vendored Normal file
View File

@ -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.

View File

@ -0,0 +1 @@
usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/libnymea_integrationpluginopenmeteo.so

28
debian/rules vendored Normal file
View File

@ -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

View File

@ -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 ..;