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

Commit

Permalink
build: add DarhonFinance
Browse files Browse the repository at this point in the history
Darhon Finance 是一款功能强大、用户友好的个人理财程序,其中包括允许您管理财务、跟踪信用卡、银行账户、投资和计划支出的功能。 它是一款非常全面的面向台式电脑的软件,并且易于使用。

Log: finish app DarhonFinance.
  • Loading branch information
especiallyW authored and kamiyadm committed Nov 29, 2023
1 parent a608cc7 commit 04e14d8
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions io.github.DarhonFinance/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package:
id: io.github.DarhonFinance
name: DarhonFinance
version: 1.5.1
kind: app
description: |
Darhon Finance is a robust, user-friendly personal finance program that includes features that allow you to manage your finances, track your credit cards, bank accounts, investments and plan for your expenses. It is a very comprehensive software orient to desktop computers and easy to use.
runtime:
id: org.deepin.Runtime
version: 23.0.0


source:
kind: git
url: https://github.com/DarhonSoftware/DarhonFinance.git
commit: 26d4a5514c988b11de3e2c3dd7994c88f5806ee6
patch: patches/fix-001.patch


build:
kind: cmake


26 changes: 26 additions & 0 deletions io.github.DarhonFinance/patches/fix-001.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- ../CMakeLists.txt 2023-11-28 16:04:08.745616000 +0800
+++ ../CMakeLists.txt 2023-11-28 16:08:55.190408010 +0800
@@ -143,13 +143,13 @@
endif()

install(TARGETS drfinance)
-install(PROGRAMS pkg-info/com.darhon.drfinance.desktop DESTINATION /app/share/applications)
-install(FILES pkg-info/com.darhon.drfinance.metainfo.xml DESTINATION /app/share/metainfo)
-install(FILES pkg-info/com.darhon.drfinance_16.png DESTINATION /app/share/icons/hicolor/16x16/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_24.png DESTINATION /app/share/icons/hicolor/24x24/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_32.png DESTINATION /app/share/icons/hicolor/32x32/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_48.png DESTINATION /app/share/icons/hicolor/48x48/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_64.png DESTINATION /app/share/icons/hicolor/64x64/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_128.png DESTINATION /app/share/icons/hicolor/128x128/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_256.png DESTINATION /app/share/icons/hicolor/256x256/apps RENAME com.darhon.drfinance.png)
-install(FILES pkg-info/com.darhon.drfinance_512.png DESTINATION /app/share/icons/hicolor/512x512/apps RENAME com.darhon.drfinance.png)
+install(PROGRAMS pkg-info/com.darhon.drfinance.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+install(FILES pkg-info/com.darhon.drfinance.metainfo.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo)
+install(FILES pkg-info/com.darhon.drfinance_16.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_24.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/24x24/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_32.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_48.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_64.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_128.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_256.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME com.darhon.drfinance.png)
+install(FILES pkg-info/com.darhon.drfinance_512.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME com.darhon.drfinance.png)

0 comments on commit 04e14d8

Please sign in to comment.