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

Commit

Permalink
build: add hidracpp
Browse files Browse the repository at this point in the history
    Projeto hidra, versão feita em C++

Log: add software name--hidracpp
  • Loading branch information
wjyrich committed Mar 27, 2024
1 parent e7f01b2 commit c8d6719
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
28 changes: 28 additions & 0 deletions io.github.hidracpp/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package:
id: io.github.hidracpp
name: hidracpp
version: 1.2.0
kind: app
description: |
Projeto hidra, vers0Š0o feita em C++
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/petcomputacaoufrgs/hidracpp.git
commit: 99a65725b831f1924d024540c7d1f76647af7853
patch: patches/0001-install.patch

build:
kind: cmake
manual:
configure: |
cp dev/livro/342-343.jpg dev/livro/hidracpp.png
cmake -B ${build_dir} ${conf_args} ${extra_args}
build: |
cmake --build ${build_dir} -- ${jobs}
install: |
env DESTDIR=${dest_dir} cmake --build ${build_dir} --target install
54 changes: 54 additions & 0 deletions io.github.hidracpp/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
From 47477463a5a0bd434d37554c5e99db2dae91f0f4 Mon Sep 17 00:00:00 2001
From: wjyrich <1071633242@qq.com>
Date: Wed, 27 Mar 2024 11:22:44 +0800
Subject: [PATCH] install

---
CMakeLists.txt | 12 +++++++++++-
dev/livro/hidracpp.desktop | 12 ++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 dev/livro/hidracpp.desktop

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 668a404..ccaddc5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,4 +26,14 @@ set(CMAKE_PREFIX_PATH ${QT_PATH})
enable_testing(true)

add_subdirectory(src)
-add_subdirectory(src/tests)
\ No newline at end of file
+add_subdirectory(src/tests)
+
+install(TARGETS ${PROJECT_NAME}
+ DESTINATION bin)
+
+install(FILES dev/livro/hidracpp.png
+ DESTINATION share/icons)
+
+
+install(FILES dev/livro/hidracpp.desktop
+ DESTINATION share/applications)
\ No newline at end of file
diff --git a/dev/livro/hidracpp.desktop b/dev/livro/hidracpp.desktop
new file mode 100644
index 0000000..93f067c
--- /dev/null
+++ b/dev/livro/hidracpp.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Exec=hidracpp
+Name=hidracpp
+Icon=hidracpp
+Version=1.2.0
+StartupNotify=false
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Comment=Projeto hidra, versão feita em C++
+Terminal=false
+Categories=electron;tool;Qt;
--
2.33.1

0 comments on commit c8d6719

Please sign in to comment.