From bbab27f857bfe0b2a1884552edda51bb63a6add4 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Sun, 29 Oct 2023 14:00:18 +0100 Subject: [PATCH 1/2] New package: libosmscout-2023.03.30.1 --- .../dont-install-demos-and-tests.patch | 21 +++++++++++++++++++ srcpkgs/libosmscout/template | 12 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/libosmscout/patches/dont-install-demos-and-tests.patch create mode 100644 srcpkgs/libosmscout/template diff --git a/srcpkgs/libosmscout/patches/dont-install-demos-and-tests.patch b/srcpkgs/libosmscout/patches/dont-install-demos-and-tests.patch new file mode 100644 index 0000000000000..2aff50f636f6d --- /dev/null +++ b/srcpkgs/libosmscout/patches/dont-install-demos-and-tests.patch @@ -0,0 +1,21 @@ +diff a/cmake/ProjectConfig.cmake b/cmake/ProjectConfig.cmake +--- a/cmake/ProjectConfig.cmake ++++ b/cmake/ProjectConfig.cmake +@@ -168,7 +168,7 @@ macro(osmscout_demo_project) + add_executable(${_name} ${_sources}) + set_target_properties(${_name} PROPERTIES VERSION ${OSMSCOUT_LIBRARY_VERSION} SOVERSION ${OSMSCOUT_LIBRARY_VERSION} FOLDER "Demos") + target_link_libraries(${_name} ${_targets}) +- install(TARGETS ${_name} RUNTIME DESTINATION share/osmscout/demos LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) ++ # install(TARGETS ${_name} RUNTIME DESTINATION share/osmscout/demos LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + target_include_directories(${_name} PRIVATE ${_includes}) + if(WIN32 AND HAVE_WINRES_H) + create_win32_demo_resource(${_name}) +@@ -218,7 +218,7 @@ macro(osmscout_test_project) + add_executable(${_name} ${_sources}) + set_target_properties(${_name} PROPERTIES VERSION ${OSMSCOUT_LIBRARY_VERSION} SOVERSION ${OSMSCOUT_LIBRARY_VERSION} FOLDER "Tests") + target_link_libraries(${_name} ${_targets}) +- install(TARGETS ${_name} RUNTIME DESTINATION share/osmscout/tests LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) ++ # install(TARGETS ${_name} RUNTIME DESTINATION share/osmscout/tests LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + target_include_directories(${_name} PRIVATE ${_includes}) + if(WIN32) + create_win32_test_resource(${_name}) diff --git a/srcpkgs/libosmscout/template b/srcpkgs/libosmscout/template new file mode 100644 index 0000000000000..8fac2de935336 --- /dev/null +++ b/srcpkgs/libosmscout/template @@ -0,0 +1,12 @@ +# Template file for 'libosmscout' +pkgname=libosmscout +version=2023.03.30.1 +revision=1 +build_style=cmake +makedepends="libxml2-devel marisa-devel" +short_desc="C++ library for offline map rendering, routing and location lookup" +maintainer="Eloi Torrents " +license="LGPL-3.0-or-later" +homepage="https://github.com/Framstag/libosmscout" +distfiles="https://github.com/Framstag/libosmscout/archive/refs/tags/v${version}.tar.gz" +checksum=b51dc4ecbced421ed9db6359567be030c77f781b0da09830c0f2b06f675d004d From 959155cd7586d9a0efc88e397b938256e7e9e062 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Wed, 25 May 2022 22:20:18 +0200 Subject: [PATCH 2/2] New package: osmin-1.9.7 --- srcpkgs/osmin/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/osmin/template diff --git a/srcpkgs/osmin/template b/srcpkgs/osmin/template new file mode 100644 index 0000000000000..d5d5b6daaeac8 --- /dev/null +++ b/srcpkgs/osmin/template @@ -0,0 +1,26 @@ +# Template file for 'osmin' +pkgname=osmin +version=1.10.4 +revision=1 +build_style=cmake +cmake_builddir="${pkgname}-${version}" +configure_args="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ ." +hostmakedepends="qt5-qmake pkg-config qt5-host-tools git" +makedepends="marisa-devel libxml2-devel qt5-declarative-devel qt5-3d clang libgomp-devel + libomp-devel qt5-declarative-devel qt5-tools-devel + qt5-svg-devel qt5-quickcontrols2-devel qt5-sensors-devel + qt5-multimedia-devel qt5-remoteobjects-devel qt5-location-devel libosmscout" +short_desc="GPS Navigator On-Road/Off-Road" + +archs="~armv6l-musl ~armv7l ~i686" # libomp-devel +license="GPL-3.0-only" +maintainer="Eloi Torrents " +homepage="https://github.com/janbar/osmin" +distfiles="https://github.com/janbar/osmin/archive/refs/tags/${version}.tar.gz" +checksum="c2adfe579004206d85976674ed96288e446f47c5b15302e8bd66d6046c5ac2cf" + +# nopie_files="/usr/bin/osmin" + +pre_configure() { + rmdir -v backend/libosmscout +}