From 581769195525f14b48d1f0e0eaeb7b692e32da4c Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Thu, 23 May 2024 00:13:05 +0800 Subject: [PATCH] build: add app routegen Route Generator (clone frome SourceForge.net) log: add app --- io.github.routegen/linglong.yaml | 32 +++++++++++++++++++ .../patches/0001-fix-desktop.patch | 26 +++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 io.github.routegen/linglong.yaml create mode 100644 io.github.routegen/patches/0001-fix-desktop.patch diff --git a/io.github.routegen/linglong.yaml b/io.github.routegen/linglong.yaml new file mode 100644 index 000000000..6f49de879 --- /dev/null +++ b/io.github.routegen/linglong.yaml @@ -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} + diff --git a/io.github.routegen/patches/0001-fix-desktop.patch b/io.github.routegen/patches/0001-fix-desktop.patch new file mode 100644 index 000000000..8fff1d281 --- /dev/null +++ b/io.github.routegen/patches/0001-fix-desktop.patch @@ -0,0 +1,26 @@ +From 208606b8bbb85cb65d8ad21029c1627d31127ffe Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +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 +