libravatarserv is a simple libravatar server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

packages.CMakeLists.txt 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Packages
  2. set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
  3. set(CPACK_PACKAGE_VERSION_MAJOR ${${CMAKE_PROJECT_NAME}_VERSION_MAJOR})
  4. set(CPACK_PACKAGE_VERSION_MINOR ${${CMAKE_PROJECT_NAME}_VERSION_MINOR})
  5. set(CPACK_PACKAGE_VERSION_PATCH ${${CMAKE_PROJECT_NAME}_VERSION_PATCH})
  6. set(CPACK_PACKAGE_VERSION ${${CMAKE_PROJECT_NAME}_VERSION})
  7. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Simple libravatar server.")
  8. set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
  9. set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
  10. set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.md")
  11. list(APPEND CPACK_SOURCE_IGNORE_FILES "/\\\\.git"
  12. "/.gitignore"
  13. "/build/"
  14. "\\\\.sublime-"
  15. "/.drone.yml")
  16. execute_process(COMMAND uname -m
  17. OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE
  18. OUTPUT_STRIP_TRAILING_WHITESPACE)
  19. set(CPACK_PACKAGE_FILE_NAME
  20. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_PACKAGE_ARCHITECTURE}")
  21. set(CPACK_GENERATOR "TGZ")
  22. set(CPACK_SOURCE_GENERATOR "TGZ")
  23. if (WITH_DEB)
  24. set(CPACK_GENERATOR "DEB")
  25. set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  26. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  27. execute_process(COMMAND dpkg --print-architecture
  28. OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
  29. OUTPUT_STRIP_TRAILING_WHITESPACE)
  30. set(CPACK_PACKAGE_FILE_NAME
  31. "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  32. endif()
  33. if (WITH_RPM)
  34. set(CPACK_GENERATOR "RPM")
  35. set(CPACK_RPM_PACKAGE_LICENSE "GPL-3")
  36. set(CPACK_RPM_PACKAGE_URL "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  37. set(CPACK_RPM_PACKAGE_REQUIRES "cryptopp++, libMagick++, libxdg-basedir >= 1.2.0")
  38. set(CPACK_PACKAGE_FILE_NAME
  39. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}")
  40. endif()
  41. include(CPack)