Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
build: add app SubAlign
Browse files Browse the repository at this point in the history
Implementation of the original Merlijn van Veen calculator for aligning mains with subs.

log: add app
  • Loading branch information
Van020530 committed May 28, 2024
1 parent 8834175 commit 2dfdb9c
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
20 changes: 20 additions & 0 deletions io.github.SubAlign/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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
38 changes: 38 additions & 0 deletions io.github.SubAlign/patches/0001-fix-header.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 1e9c489c3a65fc18db42a1e6cad9f115d204877c Mon Sep 17 00:00:00 2001
From: van <[email protected]>
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 <cmath>
#include <QQuickPaintedItem>
#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 <cmath>
#include <QQuickPaintedItem>
#include "padding.h"
#include "axis.h"
--
2.33.1

55 changes: 55 additions & 0 deletions io.github.SubAlign/patches/0001-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
From 4a090a0d6485b61cac88d81ac43606125f91093c Mon Sep 17 00:00:00 2001
From: van <[email protected]>
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

0 comments on commit 2dfdb9c

Please sign in to comment.