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

Commit

Permalink
build: add hydraulics_channel_gvf
Browse files Browse the repository at this point in the history
Application that calculate water-surface elevation in prismatic channel with gradually varied flow.

Log: add software name--hydraulics_channel_gvf
  • Loading branch information
wjyrich authored and kamiyadm committed Jan 31, 2024
1 parent 1cd8187 commit f734cd9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
28 changes: 28 additions & 0 deletions io.github.hydraulics_channel_gvf/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package:
id: io.github.hydraulics_channel_gvf
name: hydraulics_channel_gvf
version: 3.0.9.1
kind: app
description: |
Application that calculate water-surface elevation in prismatic channel with gradually varied flow.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/hafmed/hydraulics_channel_gvf.git
commit: 80cdebf27d1e7e3eeccdcd9a9aea7667873008dd
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
29 changes: 29 additions & 0 deletions io.github.hydraulics_channel_gvf/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From adc576642eb9fecdbce93c9fbd3ab6301e78c335 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Mon, 8 Jan 2024 18:53:50 +0800
Subject: [PATCH] install

---
src/hydraulics-channel-gvf.pro | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/src/hydraulics-channel-gvf.pro b/src/hydraulics-channel-gvf.pro
index c31fc79..b43a587 100644
--- a/src/hydraulics-channel-gvf.pro
+++ b/src/hydraulics-channel-gvf.pro
@@ -39,3 +39,12 @@ RESOURCES += \

win32:RC_ICONS += icons\hydraulics-channel-gvf.ico

+BINDIR = $$PREFIX/bin
+DATADIR = $$PREFIX/share
+target.path = $$BINDIR
+desktop.files =../CompilationLinux/hydraulics-channel-gvf.desktop
+desktop.path = $$DATADIR/applications/
+icons.path = $$PREFIX/share/icons
+icons.files = ../CompilationLinux/hydraulics-channel-gvf.png
+INSTALLS += target desktop icons
+
--
2.33.1

0 comments on commit f734cd9

Please sign in to comment.