From 2dfdb9c9671e3c267f8362ab8930613889b8591d Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Thu, 9 May 2024 12:41:36 +0800 Subject: [PATCH] build: add app SubAlign Implementation of the original Merlijn van Veen calculator for aligning mains with subs. log: add app --- io.github.SubAlign/linglong.yaml | 20 +++++++ .../patches/0001-fix-header.patch | 38 +++++++++++++ io.github.SubAlign/patches/0001-fix.patch | 55 +++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 io.github.SubAlign/linglong.yaml create mode 100644 io.github.SubAlign/patches/0001-fix-header.patch create mode 100644 io.github.SubAlign/patches/0001-fix.patch diff --git a/io.github.SubAlign/linglong.yaml b/io.github.SubAlign/linglong.yaml new file mode 100644 index 000000000..a828ba636 --- /dev/null +++ b/io.github.SubAlign/linglong.yaml @@ -0,0 +1,20 @@ +package: + id: io.github.SubAlign + name: SubAlign + version: 1.0.0.1 + kind: app + description: | + Implementation of the original Merlijn van Veen calculator for aligning mains with subs. +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/psmokotnin/SubAlign.git + commit: ce8e432f0e62f3413600a7e14e1ce5287e2e828f + patch: + - patches/0001-fix-header.patch + - patches/0001-fix.patch +build: + kind: qmake \ No newline at end of file diff --git a/io.github.SubAlign/patches/0001-fix-header.patch b/io.github.SubAlign/patches/0001-fix-header.patch new file mode 100644 index 000000000..a149020fe --- /dev/null +++ b/io.github.SubAlign/patches/0001-fix-header.patch @@ -0,0 +1,38 @@ +From 1e9c489c3a65fc18db42a1e6cad9f115d204877c Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Thu, 9 May 2024 12:35:23 +0800 +Subject: [PATCH] fix-header + +--- + src/charts/axis.h | 1 + + src/charts/cursor.h | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/charts/axis.h b/src/charts/axis.h +index ad49697..633d22b 100644 +--- a/src/charts/axis.h ++++ b/src/charts/axis.h +@@ -18,6 +18,7 @@ + #ifndef CHARTAXIS_H + #define CHARTAXIS_H + ++#include + #include + #include "padding.h" + +diff --git a/src/charts/cursor.h b/src/charts/cursor.h +index 8c217d8..26dcd90 100644 +--- a/src/charts/cursor.h ++++ b/src/charts/cursor.h +@@ -17,7 +17,7 @@ + */ + #ifndef CHARTCURSOR_H + #define CHARTCURSOR_H +- ++#include + #include + #include "padding.h" + #include "axis.h" +-- +2.33.1 + diff --git a/io.github.SubAlign/patches/0001-fix.patch b/io.github.SubAlign/patches/0001-fix.patch new file mode 100644 index 000000000..31714a1f7 --- /dev/null +++ b/io.github.SubAlign/patches/0001-fix.patch @@ -0,0 +1,55 @@ +From 4a090a0d6485b61cac88d81ac43606125f91093c Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Thu, 9 May 2024 12:39:28 +0800 +Subject: [PATCH] fix + +--- + SubAlign.desktop | 9 +++++++++ + SubAlign.pro | 15 ++++++++++++--- + 2 files changed, 21 insertions(+), 3 deletions(-) + create mode 100644 SubAlign.desktop + +diff --git a/SubAlign.desktop b/SubAlign.desktop +new file mode 100644 +index 0000000..36e01a3 +--- /dev/null ++++ b/SubAlign.desktop +@@ -0,0 +1,9 @@ ++[Desktop Entry] ++Categories=Tool;Qt; ++Exec=SubAlign ++Name=SubAlign ++Icon=PavelLogo ++StartupNotify=false ++Terminal=false ++Type=Application ++X-Deepin-Vendor=user-custom +diff --git a/SubAlign.pro b/SubAlign.pro +index 8b75ad9..6b36339 100644 +--- a/SubAlign.pro ++++ b/SubAlign.pro +@@ -38,9 +38,18 @@ QML_IMPORT_PATH = + QML_DESIGNER_IMPORT_PATH = + + # Default rules for deployment. +-qnx: target.path = /tmp/$${TARGET}/bin +-else: unix:!android: target.path = /opt/$${TARGET}/bin +-!isEmpty(target.path): INSTALLS += target ++#qnx: target.path = /tmp/$${TARGET}/bin ++#else: unix:!android: target.path = /opt/$${TARGET}/bin ++#!isEmpty(target.path): INSTALLS += target ++ ++BINDIR = $$PREFIX/bin ++DATADIR = $$PREFIX/share ++target.path = $$BINDIR ++desktop.files = SubAlign.desktop ++desktop.path = $$DATADIR/applications/ ++icon.files = resources/PavelLogo.png ++icon.path= $$DATADIR/icons/hicolor/96x96/apps/ ++INSTALLS += target desktop icon + + ios: { + QMAKE_IOS_DEPLOYMENT_TARGET = 12.0 +-- +2.33.1 +