logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

shiromino-0.2.1-fix_cmake_targets.patch (1068B)


  1. Taken from 36d9eb04f5cbb0815e91681b67cc4e44033fb023
  2. diff --git a/CMakeLists.txt b/CMakeLists.txt
  3. index 6d8b1e6..cce87d3 100644
  4. --- a/CMakeLists.txt
  5. +++ b/CMakeLists.txt
  6. @@ -1,4 +1,4 @@
  7. -cmake_minimum_required(VERSION 3.15)
  8. +cmake_minimum_required(VERSION 3.16)
  9. project(shiromino
  10. DESCRIPTION "A fast-paced puzzle game with roots in the arcade."
  11. HOMEPAGE_URL "https://github.com/shiromino/shiromino"
  12. @@ -319,7 +319,8 @@ endif()
  13. #
  14. # Installation
  15. #
  16. -install(DIRECTORY data DESTINATION usr/share/${PROJECT_NAME})
  17. -install(FILES LICENSE.md DESTINATION usr/share/licenses/${PROJECT_NAME})
  18. -install(FILES shiromino.ini TYPE SYSCONF)
  19. -install(TARGETS ${GAME_EXECUTABLE} RUNTIME DESTINATION usr/bin)
  20. \ No newline at end of file
  21. +include(GNUInstallDirs)
  22. +install(DIRECTORY data DESTINATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
  23. +install(FILES LICENSE.md DESTINATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
  24. +install(FILES shiromino.ini TYPE SYSCONF)
  25. +install(TARGETS ${GAME_EXECUTABLE} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
  26. \ No newline at end of file