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

build: add ColorPie #2065

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions io.github.ColorPie/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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
50 changes: 50 additions & 0 deletions io.github.ColorPie/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -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