--- CMakeLists.txt.orig 2019-06-23 14:50:35 UTC +++ CMakeLists.txt @@ -72,9 +72,12 @@ if(BUILD_TESTS) endif() if(NOT DEFINED DOC_PATH) - set(DOC_PATH "share/doc/${CPACK_PACKAGE_NAME}-${VERSION}") + set(DOC_PATH "share/doc/${CPACK_PACKAGE_NAME}") endif(NOT DEFINED DOC_PATH) -set(DOC_FILES extras/convert.lua data/conky_no_x11.conf data/conky.conf) +if(NOT DEFINED SAMPLE_PATH) + set(SAMPLE_PATH "share/examples/${CPACK_PACKAGE_NAME}") +endif(NOT DEFINED SAMPLE_PATH) +set(SAMPLE_FILES extras/convert.lua data/conky_no_x11.conf data/conky.conf) set(HTML_PATH "${DOC_PATH}/html") set(HTML_FILES @@ -83,10 +86,10 @@ set(HTML_FILES doc/lua.html doc/variables.html) -set(MAN_PATH "share/man/man1") +set(MAN_PATH "man/man1") set(MAN_FILES doc/conky.1) -install(FILES ${DOC_FILES} DESTINATION ${DOC_PATH}) +install(FILES ${SAMPLE_FILES} DESTINATION ${SAMPLE_PATH}) if(BUILD_DOCS) install(FILES ${HTML_FILES} DESTINATION ${HTML_PATH})