From 1b26375ecbc621e68e706962cb373971dfb65ecb Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Tue, 28 May 2024 21:31:29 +0800 Subject: [PATCH] build: add poolviewer Poolviewer - Opensource Swimovate Poolmate application Log: add software name--poolviewer --- io.github.poolviewer/linglong.yaml | 26 ++++++++++ .../patches/0001-install.patch | 51 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 io.github.poolviewer/linglong.yaml create mode 100644 io.github.poolviewer/patches/0001-install.patch diff --git a/io.github.poolviewer/linglong.yaml b/io.github.poolviewer/linglong.yaml new file mode 100644 index 000000000..686da1c83 --- /dev/null +++ b/io.github.poolviewer/linglong.yaml @@ -0,0 +1,26 @@ +package: + id: io.github.poolviewer + name: poolviewer + version: 0.6.2 + kind: app + description: | + Poolviewer - Opensource Swimovate Poolmate application + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +depends: + - id: qtwebengine/5.15.7 + type: runtime + - id: qtserialport/5.15.7 + type: runtime + +source: + kind: git + url: https://github.com/ihewitt/poolviewer.git + commit: b83ac69cd436325157e02aa914830e1e34888610 + patch: patches/0001-install.patch + +build: + kind: qmake \ No newline at end of file diff --git a/io.github.poolviewer/patches/0001-install.patch b/io.github.poolviewer/patches/0001-install.patch new file mode 100644 index 000000000..50362d6a4 --- /dev/null +++ b/io.github.poolviewer/patches/0001-install.patch @@ -0,0 +1,51 @@ +From c787a7615824be1ca42a2c1b592deafe6b9d7693 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +Date: Wed, 22 May 2024 12:42:59 +0800 +Subject: [PATCH] install + +--- + images/poolviewer.desktop | 11 +++++++++++ + poolview.pro | 7 ++++++- + 2 files changed, 17 insertions(+), 1 deletion(-) + create mode 100644 images/poolviewer.desktop + +diff --git a/images/poolviewer.desktop b/images/poolviewer.desktop +new file mode 100644 +index 0000000..c42395f +--- /dev/null ++++ b/images/poolviewer.desktop +@@ -0,0 +1,11 @@ ++[Desktop Entry] ++Categories=Utility; ++Comment=Opensource Swimovate Poolmate application ++Exec=poolview ++GenericName=poolview ++Icon=pod ++Name=poolview ++StartupNotify=false ++Type=Application ++Version=0.6.1 ++X-Deepin-Vendor=user-custom +diff --git a/poolview.pro b/poolview.pro +index 35a324c..1c41d77 100644 +--- a/poolview.pro ++++ b/poolview.pro +@@ -35,9 +35,14 @@ CONFIG(debug, debug|release) { + win32: TARGET = $$join(TARGET,,d) + } + +-target.path = $$PREFIX/usr/bin ++target.path = $$PREFIX/bin + INSTALLS += target ++desktop.files = images/poolviewer.desktop ++desktop.path = $$PREFIX/share/applications/ ++icons.path = $$PREFIX/share/icons/hicolor/32X32/apps/ ++icons.files = images/pod.png + ++INSTALLS += desktop icons + FORMS = ui/summary.ui \ + ui/sync.ui \ + ui/config.ui \ +-- +2.33.1 +