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

build: add QtBitcoinTrader #2193

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
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
32 changes: 32 additions & 0 deletions io.github.QtBitcoinTrader/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
id: io.github.QtBitcoinTrader
name: QtBitcoinTrader
version: 1.42.22
kind: app
description: |
Secure multi crypto exchange trading client

runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: qtscript/5.15.7
type: runtime

source:
kind: git
url: https://github.com/JulyIghor/QtBitcoinTrader.git
commit: c42311bbda2adf3ec91bccfe12c94e78f82575e1
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
34 changes: 34 additions & 0 deletions io.github.QtBitcoinTrader/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 2cd66ac73047b2ad05e526e0f98760769b6c6a82 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Fri, 17 May 2024 12:05:50 +0800
Subject: [PATCH] install

---
src/QtBitcoinTrader_Desktop.pro | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/QtBitcoinTrader_Desktop.pro b/src/QtBitcoinTrader_Desktop.pro
index 73814ed..01f6d27 100755
--- a/src/QtBitcoinTrader_Desktop.pro
+++ b/src/QtBitcoinTrader_Desktop.pro
@@ -293,14 +293,12 @@ unix:!macx {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
- isEmpty( PREFIX ) {
- PREFIX=/usr
- }
+
isEmpty( DESKTOPDIR ) {
- DESKTOPDIR=/usr/share/applications
+ DESKTOPDIR= $$PREFIX/share/applications
}
isEmpty( ICONDIR ) {
- ICONDIR=/usr/share/pixmaps
+ ICONDIR= $$PREFIX/share/icons/hicolor/16X16/apps/
}

target.path = $${PREFIX}/bin
--
2.33.1

Loading