From 213b16615fda05ef4b0b6e2fd44b1894e14e9a44 Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Tue, 28 May 2024 21:57:18 +0800 Subject: [PATCH] build: add ColorPie ColorConverter utility written in Qt Log: add software name--ColorPie --- io.github.ColorPie/linglong.yaml | 42 ++++++++++++++++ io.github.ColorPie/patches/0001-install.patch | 50 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 io.github.ColorPie/linglong.yaml create mode 100644 io.github.ColorPie/patches/0001-install.patch diff --git a/io.github.ColorPie/linglong.yaml b/io.github.ColorPie/linglong.yaml new file mode 100644 index 000000000..1f03d09a9 --- /dev/null +++ b/io.github.ColorPie/linglong.yaml @@ -0,0 +1,42 @@ +package: + id: io.github.ColorPie + name: ColorPie + version: 1.0.1 + kind: app + description: | + ColorConverter utility written in Qt + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +depends: + - id: qthttpserver + type: runtime + version: 1.0.0 + source: + kind: git + url: https://github.com/qt-labs/qthttpserver.git + version: master + commit: 52bce52413763ead7759f8c2e374a40bb82f058f + build: + kind: qmake + - id: qtwebengine/5.15.7 + type: runtime + +source: + kind: git + url: https://github.com/keshavbhatt/ColorPie.git + commit: e497f611da2381c3ba1a5dd31d1f92e3101e9c68 + patch: patches/0001-install.patch + +build: + kind: qmake + manual: + configure: | + cd src + qmake -makefile ${conf_args} ${extra_args} + build: | + make ${jobs} + install: | + make ${jobs} DESTDIR=${dest_dir} install \ No newline at end of file diff --git a/io.github.ColorPie/patches/0001-install.patch b/io.github.ColorPie/patches/0001-install.patch new file mode 100644 index 000000000..466ed1776 --- /dev/null +++ b/io.github.ColorPie/patches/0001-install.patch @@ -0,0 +1,50 @@ +From 8529683f84ec31e348758431c9a7ceceabe578f3 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +Date: Thu, 18 Apr 2024 11:00:35 +0800 +Subject: [PATCH] install + +--- + src/ColorPie.pro | 10 +++++++++- + src/colorpie.desktop | 2 +- + 2 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/ColorPie.pro b/src/ColorPie.pro +index 13f9230..22125bc 100644 +--- a/src/ColorPie.pro ++++ b/src/ColorPie.pro +@@ -52,9 +52,17 @@ FORMS += \ + + # Default rules for deployment. + qnx: target.path = /tmp/$${TARGET}/bin +-else: unix:!android: target.path = /opt/$${TARGET}/bin ++else: unix:!android: #target.path = /opt/$${TARGET}/bin + !isEmpty(target.path): INSTALLS += target + + RESOURCES += \ + breeze.qrc \ + resources.qrc ++ ++target.path =$$PREFIX/bin ++desktop.files =colorpie.desktop ++desktop.path = $$PREFIX/share/applications/ ++icons.path = $$PREFIX/share/icons/hicolor/128X128/apps/ ++icons.files = icons/icon-128.png ++ ++INSTALLS += target desktop icons +\ No newline at end of file +diff --git a/src/colorpie.desktop b/src/colorpie.desktop +index 4227ed7..fe92b0e 100644 +--- a/src/colorpie.desktop ++++ b/src/colorpie.desktop +@@ -2,7 +2,7 @@ + Name=ColorPie + GenericName=Color picker + Comment=Professional color management utility +-Icon=com.ktechpit.colorpie ++Icon=icon-128 + Exec=colorpie + Terminal=false + Type=Application +-- +2.33.1 +