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

Commit

Permalink
build: add app routegen
Browse files Browse the repository at this point in the history
Route Generator (clone frome SourceForge.net)

log: add app
  • Loading branch information
Van020530 committed May 28, 2024
1 parent 8834175 commit 5817691
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
32 changes: 32 additions & 0 deletions io.github.routegen/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
id: io.github.routegen
name: routegen
version: 1.12.2.1
kind: app
description: |
Route Generator (clone frome SourceForge.net)
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/michjans/routegen.git
commit: d53bc1aff7759e894a47365af06845719c073858
patch: patches/0001-fix-desktop.patch

depends:
- id: qtwebengine/5.15.7
- id: libgeotiff/1.7.1
type: runtime
- id: PROJ/9.4.0
type: runtime
build:
kind: cmake
manual:
configure: |
ln -s ${PREFIX}/lib/${TRIPLET}/libproj.so ${PREFIX}/lib/${TRIPLET}/libproj.so.22
cd src
cmake -B ${build_dir} ${conf_args} ${extra_args}
26 changes: 26 additions & 0 deletions io.github.routegen/patches/0001-fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 208606b8bbb85cb65d8ad21029c1627d31127ffe Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Thu, 23 May 2024 00:27:36 +0800
Subject: [PATCH] fix-desktop

---
src/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b585ff2..fffaffc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -103,6 +103,9 @@ install(TARGETS routegen
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
+install(PROGRAMS ../deploy/linux/routegen/usr/share/applications/routegen.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+install(PROGRAMS ../deploy/linux/routegen/usr/share/icons/hicolor/48x48/apps/routegen.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps/)
+

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
--
2.33.1

0 comments on commit 5817691

Please sign in to comment.