From 6c98382c8d17483fd5f27c1ca871bcee8f7f0564 Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Thu, 9 May 2024 00:29:08 +0800 Subject: [PATCH] build: add app Qtext Simple note taking program with multi-folder support and auto-save. log: add app --- io.github.QText/linglong.yaml | 29 +++++++++++ .../patches/0001-fix-desktop.patch | 52 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 io.github.QText/linglong.yaml create mode 100644 io.github.QText/patches/0001-fix-desktop.patch diff --git a/io.github.QText/linglong.yaml b/io.github.QText/linglong.yaml new file mode 100644 index 000000000..1cd73d8d5 --- /dev/null +++ b/io.github.QText/linglong.yaml @@ -0,0 +1,29 @@ +package: + id: io.github.QText + name: QText + version: 4.99.28.2 + kind: app + description: | + Simple note taking program with multi-folder support and auto-save. +runtime: + id: org.deepin.Runtime + version: 23.0.0 + + +source: + kind: git + url: https://github.com/medo64/QText.git + commit: ca67ad2114b6feafc558045d9294b58d68cc7769 + patch: patches/0001-fix-desktop.patch +build: + kind: qmake + manual : + configure: | + cd src + cp icons/256x256/app.png icons/256x256/QTextIcon.png + qmake -makefile ${conf_args} ${extra_args} + build: | + make ${jobs} + install: | + make ${jobs} DESTDIR=${dest_dir} install + diff --git a/io.github.QText/patches/0001-fix-desktop.patch b/io.github.QText/patches/0001-fix-desktop.patch new file mode 100644 index 000000000..60032baab --- /dev/null +++ b/io.github.QText/patches/0001-fix-desktop.patch @@ -0,0 +1,52 @@ +From e88fcc656998236164b25192a99493fd0b9b41f9 Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Thu, 9 May 2024 00:23:43 +0800 +Subject: [PATCH] fix-desktop + +--- + src/QText.pro | 12 +++++++++--- + src/Qtext.desktop | 9 +++++++++ + 2 files changed, 18 insertions(+), 3 deletions(-) + create mode 100644 src/Qtext.desktop + +diff --git a/src/QText.pro b/src/QText.pro +index 681a01e..b151ec6 100644 +--- a/src/QText.pro ++++ b/src/QText.pro +@@ -161,9 +161,15 @@ FORMS += \ + ui/mainwindow.ui + + # Default rules for deployment. +-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 = Qtext.desktop ++desktop.path = $$DATADIR/applications/ ++icon.files = icons/256x256/QTextIcon.png ++icon.path= $$DATADIR/icons/hicolor/256x256/apps/ ++INSTALLS += target desktop icon + + RESOURCES += \ + qtext.qrc +diff --git a/src/Qtext.desktop b/src/Qtext.desktop +new file mode 100644 +index 0000000..c1ed3ba +--- /dev/null ++++ b/src/Qtext.desktop +@@ -0,0 +1,9 @@ ++[Desktop Entry] ++Categories=Tool;Qt; ++Exec=qtext ++Name=qtext ++Icon=QTextIcon ++StartupNotify=false ++Terminal=false ++Type=Application ++X-Deepin-Vendor=user-custom +-- +2.33.1 +