Whyblocked reminds you why you blocked someone.
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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 ${whyblocked_VERSION})
  7. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Whyblocked reminds you why you blocked someone.")
  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. set(CPACK_PACKAGE_ICON "de.tastytea.Whyblocked.svg")
  12. list(APPEND CPACK_SOURCE_IGNORE_FILES "/\\\\.git"
  13. "/.gitignore"
  14. "/build/"
  15. "\\\\.sublime-"
  16. "/.drone.yml")
  17. execute_process(COMMAND uname -m
  18. OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE
  19. OUTPUT_STRIP_TRAILING_WHITESPACE)
  20. set(CPACK_PACKAGE_FILE_NAME
  21. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_PACKAGE_ARCHITECTURE}")
  22. set(CPACK_GENERATOR "TGZ")
  23. set(CPACK_SOURCE_GENERATOR "TGZ")
  24. if (WITH_DEB)
  25. set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
  26. set(CPACK_GENERATOR "DEB")
  27. set(CPACK_SOURCE_GENERATOR "DEB")
  28. set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://schlomp.space/tastytea/whyblocked")
  29. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  30. execute_process(COMMAND dpkg --print-architecture
  31. OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
  32. OUTPUT_STRIP_TRAILING_WHITESPACE)
  33. set(CPACK_PACKAGE_FILE_NAME
  34. "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  35. set(CPACK_SOURCE_PACKAGE_FILE_NAME
  36. "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_src")
  37. endif()
  38. if (WITH_RPM)
  39. set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
  40. set(CPACK_GENERATOR "RPM")
  41. set(CPACK_SOURCE_GENERATOR "RPM")
  42. set(CPACK_RPM_PACKAGE_LICENSE "GPL-3")
  43. set(CPACK_RPM_PACKAGE_URL "https://schlomp.space/tastytea/whyblocked")
  44. if(NOT WITHOUT_QT)
  45. set(CPACK_RPM_PACKAGE_REQUIRES "vsqlite++ >= 0.3.13, libxdg-basedir >= 1.2.0, qt >= 5.0")
  46. else()
  47. set(CPACK_RPM_PACKAGE_REQUIRES "vsqlite++ >= 0.3.13, libxdg-basedir >= 1.2.0")
  48. endif()
  49. set(CPACK_PACKAGE_FILE_NAME
  50. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}")
  51. set(CPACK_SOURCE_PACKAGE_FILE_NAME
  52. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.src")
  53. endif()
  54. include(CPack)