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 22, 2024
1 parent 8834175 commit 92ed045
Show file tree
Hide file tree
Showing 2 changed files with 73 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.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-and-install.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}
41 changes: 41 additions & 0 deletions io.github.routegen/patches/0001-fix-desktop-and-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From 22e6a74b7404fb1b5b65e465d7c605c09f14e455 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Wed, 22 May 2024 21:05:16 +0800
Subject: [PATCH] fix-desktop-and-install

---
src/CMakeLists.txt | 5 +++++
src/routegen.desktop | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b585ff2..30271b6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -103,6 +103,11 @@ install(TARGETS routegen
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
+install(PROGRAMS routegen.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+install(PROGRAMS icons/mapgen.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32X32/)
+install(PROGRAMS icons/mapgen-16x16.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16X16/)
+install(PROGRAMS icons/mapgen-48x48.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48X48/)
+

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
diff --git a/src/routegen.desktop b/src/routegen.desktop
index fc029cc..fc4c4f2 100644
--- a/src/routegen.desktop
+++ b/src/routegen.desktop
@@ -5,6 +5,6 @@ GenericName=Route Generator
Exec=routegen
Terminal=false
Type=Application
-Icon=maproute.png
+Icon=mapgen
Categories=Multimedia;
StartupNotify=true
--
2.33.1

0 comments on commit 92ed045

Please sign in to comment.