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

Commit

Permalink
build: add openbabel
Browse files Browse the repository at this point in the history
    Open Babel is a chemical toolbox designed to speak the many languages of chemical data.

Log: add software name--openbabel
  • Loading branch information
wjyrich authored and kamiyadm committed Mar 27, 2024
1 parent 4016e72 commit 7994ca0
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
32 changes: 32 additions & 0 deletions io.github.openbabel/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
id: io.github.openbabel
name: openbabel
version: 2.4.1
kind: app
description: |
Open Babel is a chemical toolbox designed to speak the many languages of chemical data.
runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: wxWidgets/3.2.3
type: runtime

source:
kind: git
url: https://github.com/openbabel/openbabel.git
commit: 701f6049c483b1349118c2ff736a7f609a84dedd
patch: patches/0001-install.patch

build:
kind: cmake
manual:
configure: |
cp src/GUI/babel2.ico src/GUI/babel2.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
47 changes: 47 additions & 0 deletions io.github.openbabel/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
From ba62d9836ef14cf53ab2fbc53ca227de4820b15c Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Wed, 20 Mar 2024 14:35:38 +0800
Subject: [PATCH] install

---
src/GUI/CMakeLists.txt | 6 ++++++
src/GUI/babel2.desktop | 11 +++++++++++
2 files changed, 17 insertions(+)
create mode 100644 src/GUI/babel2.desktop

diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt
index 54bf0c9..72c417b 100644
--- a/src/GUI/CMakeLists.txt
+++ b/src/GUI/CMakeLists.txt
@@ -11,3 +11,9 @@ install(TARGETS obgui
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
+install(FILES babel2.png
+ DESTINATION share/icons)
+
+
+install(FILES babel2.desktop
+ DESTINATION share/applications)
\ No newline at end of file
diff --git a/src/GUI/babel2.desktop b/src/GUI/babel2.desktop
new file mode 100644
index 0000000..7024f48
--- /dev/null
+++ b/src/GUI/babel2.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=obgui
+Comment=s a chemical toolbox designed to speak the many languages of chemical data
+Exec=obgui
+Keywords=markdown;designed;notes;
+Icon=babel2
+Type=Application
+Terminal=false
+StartupNotify=true
+Categories=designed;Education;
+StartupWMClass=obgui
\ No newline at end of file
--
2.33.1

0 comments on commit 7994ca0

Please sign in to comment.