2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${${PROJECT_NAME}_VERSION_PATCH})
|
|
|
|
set(CPACK_PACKAGE_VERSION ${${PROJECT_NAME}_VERSION})
|
2019-07-30 06:58:21 +02:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
|
|
|
|
"Saves URIs of things you want to remember in a database. ")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
|
|
|
set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.adoc")
|
|
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "/\\\\.git"
|
2019-07-30 06:58:21 +02:00
|
|
|
"/.gitignore"
|
|
|
|
"/build/"
|
|
|
|
"/doc/"
|
|
|
|
"/update_doc.sh"
|
|
|
|
"/.drone.yml"
|
|
|
|
"/.dir-locals.el")
|
2019-05-18 05:09:56 +02:00
|
|
|
execute_process(COMMAND uname -m
|
2019-07-30 06:58:21 +02:00
|
|
|
OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME
|
2019-07-30 06:58:21 +02:00
|
|
|
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_PACKAGE_ARCHITECTURE}")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_GENERATOR "TGZ")
|
|
|
|
set(CPACK_SOURCE_GENERATOR "TGZ")
|
|
|
|
|
|
|
|
if (WITH_DEB)
|
2019-05-18 06:09:38 +02:00
|
|
|
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_GENERATOR "DEB")
|
|
|
|
set(CPACK_SOURCE_GENERATOR "DEB")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://schlomp.space/tastytea/${PROJECT_NAME}")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
|
|
|
execute_process(COMMAND dpkg --print-architecture
|
2019-07-30 06:58:21 +02:00
|
|
|
OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME
|
2019-07-30 06:58:21 +02:00
|
|
|
"${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME
|
|
|
|
"${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_src")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (WITH_RPM)
|
2019-05-18 06:09:38 +02:00
|
|
|
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_GENERATOR "RPM")
|
|
|
|
set(CPACK_SOURCE_GENERATOR "RPM")
|
|
|
|
set(CPACK_RPM_PACKAGE_LICENSE "GPL-3")
|
|
|
|
set(CPACK_RPM_PACKAGE_URL "https://schlomp.space/tastytea/${PROJECT_NAME}")
|
2019-07-30 06:58:21 +02:00
|
|
|
set(CPACK_RPM_PACKAGE_REQUIRES
|
2019-08-06 11:39:51 +02:00
|
|
|
"poco-netssl >= 1.6, libxdg-basedir, vsqlite++ >= 0.3")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME
|
2019-07-30 06:58:21 +02:00
|
|
|
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}")
|
2019-05-18 05:09:56 +02:00
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME
|
2019-07-30 06:58:21 +02:00
|
|
|
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.src")
|
2019-05-18 05:09:56 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(CPack)
|