From 89872b6ce5331135513cafab46e36c41148f84d5 Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Wed, 8 May 2024 23:11:48 +0800 Subject: [PATCH] build: add app KKEditQT KKEditQT Source Code Editor. log: add app --- io.github.KKEditQT/linglong.yaml | 34 +++++++ .../patches/0001-fix-include.patch | 94 +++++++++++++++++++ io.github.KKEditQT/patches/0001-fix.patch | 36 +++++++ 3 files changed, 164 insertions(+) create mode 100644 io.github.KKEditQT/linglong.yaml create mode 100644 io.github.KKEditQT/patches/0001-fix-include.patch create mode 100644 io.github.KKEditQT/patches/0001-fix.patch diff --git a/io.github.KKEditQT/linglong.yaml b/io.github.KKEditQT/linglong.yaml new file mode 100644 index 000000000..e5539807f --- /dev/null +++ b/io.github.KKEditQT/linglong.yaml @@ -0,0 +1,34 @@ +package: + id: io.github.KKEditQT + name: KKEditQT + version: 1.0.0.1 + kind: app + description: | + KKEditQT Source Code Editor. +runtime: + id: org.deepin.Runtime + version: 23.0.0 +depends: + - id: automake/1.16.5 + - id: pkgconf/2.0.3 + - id: qtwebengine/5.15.7 + - id: aspell/0.60.8 + type: runtime + +source: + kind: git + url: https://github.com/KeithDHedger/KKEditQT.git + commit: b224132145635e0893831e84b2d8c1234e6a3b42 + patch: + - patches/0001-fix-include.patch + - patches/0001-fix.patch +build: + kind: qmake + manual: + configure: | + ./autogen.sh + ./configure --prefix=${PREFIX} --libdir=${PREFIX}/lib/${TRIPLET} --includedir=${PREFIX}/include CXXFLAGS="-I/${PREFIX}/include" + build: | + make ${jobs} + install: | + make ${jobs} DESTDIR=${dest_dir} install \ No newline at end of file diff --git a/io.github.KKEditQT/patches/0001-fix-include.patch b/io.github.KKEditQT/patches/0001-fix-include.patch new file mode 100644 index 000000000..203b77987 --- /dev/null +++ b/io.github.KKEditQT/patches/0001-fix-include.patch @@ -0,0 +1,94 @@ +From c2d224bb22a23258ef4f145efb1098c7676771c3 Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Tue, 7 Nov 2023 14:22:38 +0800 +Subject: [PATCH] fix-include + +--- + KKEditQT/plugins/Clipboard/plugin/plugin.pro | 1 + + KKEditQT/plugins/Favourites/plugin/plugin.pro | 2 +- + KKEditQT/plugins/OpenUri/plugin/plugin.pro | 2 +- + KKEditQT/plugins/SaveHistory/plugin/plugin.pro | 2 +- + KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro | 2 +- + KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro | 2 +- + 6 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/KKEditQT/plugins/Clipboard/plugin/plugin.pro b/KKEditQT/plugins/Clipboard/plugin/plugin.pro +index 3701fe7..ff73a6d 100644 +--- a/KKEditQT/plugins/Clipboard/plugin/plugin.pro ++++ b/KKEditQT/plugins/Clipboard/plugin/plugin.pro +@@ -5,6 +5,7 @@ HEADERS = Clipboard.h + SOURCES = Clipboard.cpp + TARGET = $$qtLibraryTarget(Clipboard) + DESTDIR = plugins ++INCLUDEPATH+=${PREFIX}/include + + documentation.files = docs/* + image.files = ClipboardViewer.png +diff --git a/KKEditQT/plugins/Favourites/plugin/plugin.pro b/KKEditQT/plugins/Favourites/plugin/plugin.pro +index eb72bae..7d5748a 100644 +--- a/KKEditQT/plugins/Favourites/plugin/plugin.pro ++++ b/KKEditQT/plugins/Favourites/plugin/plugin.pro +@@ -5,7 +5,7 @@ HEADERS = Favourites.h + SOURCES = Favourites.cpp + TARGET = $$qtLibraryTarget(Favourites) + DESTDIR = plugins +- ++INCLUDEPATH+=${PREFIX}/include + documentation.files = docs/* + image.files = Favorite.png + +diff --git a/KKEditQT/plugins/OpenUri/plugin/plugin.pro b/KKEditQT/plugins/OpenUri/plugin/plugin.pro +index 56a7a3f..cae4eb8 100644 +--- a/KKEditQT/plugins/OpenUri/plugin/plugin.pro ++++ b/KKEditQT/plugins/OpenUri/plugin/plugin.pro +@@ -5,7 +5,7 @@ HEADERS = OpenUri.h + SOURCES = OpenUri.cpp + TARGET = $$qtLibraryTarget(OpenUri) + DESTDIR = plugins +- ++INCLUDEPATH+=${PREFIX}/include + documentation.files = docs/* + image.files = OpenUri.png + +diff --git a/KKEditQT/plugins/SaveHistory/plugin/plugin.pro b/KKEditQT/plugins/SaveHistory/plugin/plugin.pro +index 69b4e13..0a56d96 100644 +--- a/KKEditQT/plugins/SaveHistory/plugin/plugin.pro ++++ b/KKEditQT/plugins/SaveHistory/plugin/plugin.pro +@@ -5,7 +5,7 @@ HEADERS = SaveHistory.h + SOURCES = SaveHistory.cpp + TARGET = $$qtLibraryTarget(SaveHistory) + DESTDIR = plugins +- ++INCLUDEPATH+=${PREFIX}/include + documentation.files = docs/* + + target.path = ../build/plugins +diff --git a/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro b/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro +index 42309dc..01097f0 100644 +--- a/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro ++++ b/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro +@@ -5,7 +5,7 @@ HEADERS = SymbolsMenu.h + SOURCES = SymbolsMenu.cpp + TARGET = $$qtLibraryTarget(SymbolsMenu) + DESTDIR = plugins +- ++INCLUDEPATH+=${PREFIX}/include + data.files = indicator-chars.txt + documentation.files = docs/* + image.files = Symbols.png +diff --git a/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro b/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro +index 566f7e5..19d2d90 100644 +--- a/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro ++++ b/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro +@@ -5,7 +5,7 @@ HEADERS = kkeditqtPluginExample.h + SOURCES = kkeditqtPluginExample.cpp + TARGET = $$qtLibraryTarget(kkeditqtPluginExample) + DESTDIR = .plugins +- ++INCLUDEPATH+=${PREFIX}/include + documentation.files = docs/* + + target.path = ../build/plugins +-- +2.33.1 + diff --git a/io.github.KKEditQT/patches/0001-fix.patch b/io.github.KKEditQT/patches/0001-fix.patch new file mode 100644 index 000000000..26ed80397 --- /dev/null +++ b/io.github.KKEditQT/patches/0001-fix.patch @@ -0,0 +1,36 @@ +From 7d4a84de6c27d33ef216f55fd0dd9867e4bf894b Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Wed, 8 May 2024 23:03:17 +0800 +Subject: [PATCH] fix + +--- + buildplugs.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/buildplugs.sh b/buildplugs.sh +index 47c0677..819a598 100755 +--- a/buildplugs.sh ++++ b/buildplugs.sh +@@ -28,7 +28,7 @@ buildPlug () + WHERE="$2" + THISDIR=$(basename $(pwd)) + PARENTDIR="$(basename "$(dirname $(pwd))")" +- ++ PREFIX="$PREFIX" + mkdir -vp build + + case $WHAT in +@@ -38,8 +38,8 @@ buildPlug () + "build") + mkdir -vp build + cd build +- qmake .. +- make ++ qmake .. PREFIX=${PREFIX} ++ make ${JOBS} + ;; + "install") + cd build +-- +2.33.1 +