Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > e4e15f252c8ec0252be4c46439801b55 > files > 12

xygrib-1.2.6.1-3.mga9.src.rpm

From aaa9df5a8d8000732d64291c00303a6b4f783b39 Mon Sep 17 00:00:00 2001
From: Niclas Rosenvik <youremailsarecrap@gmail.com>
Date: Tue, 29 Oct 2019 10:50:28 +0000
Subject: [PATCH 4/4] Fix installation of data on linux-like systems

The organisation name is needed in the data installation path since
is is added to the XDGDirs path by qt5.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 921d9e7..6c91a25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,7 +219,7 @@ if(UNIX AND NOT APPLE)
 # This is not exactly a good idea on linux - the code should be changed so that the executable would go to /usr/local/bin and the data to /usr/local/share/XyGrib
 include(GNUInstallDirs)
 set(PREFIX_BIN ${CMAKE_INSTALL_FULL_BINDIR})
-set(PREFIX_PKGDATA ${CMAKE_INSTALL_FULL_DATAROOTDIR}/${PROJECT_NAME})
+set(PREFIX_PKGDATA ${CMAKE_INSTALL_FULL_DATADIR}/openGribs/${PROJECT_NAME})
 endif()
 
 add_subdirectory(src)
-- 
2.37.1