diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 12:06:43 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 12:06:43 +0900 |
| commit | 28de2ff84f59ac0b173670aa9c5331bc77c1e63f (patch) | |
| tree | 43dcf0f461ee5552100b648e38979982c971597d /cmake/modules/PolkitQt-1Dist.cmake | |
| download | polkit-tqt-28de2ff84f59ac0b173670aa9c5331bc77c1e63f.tar.gz polkit-tqt-28de2ff84f59ac0b173670aa9c5331bc77c1e63f.zip | |
Initial import from polkit-qt-1 debian snapshot archive.
https://snapshot.debian.org/package/polkit-qt-1/0.103.0-1/
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'cmake/modules/PolkitQt-1Dist.cmake')
| -rw-r--r-- | cmake/modules/PolkitQt-1Dist.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/modules/PolkitQt-1Dist.cmake b/cmake/modules/PolkitQt-1Dist.cmake new file mode 100644 index 000000000..99122ddfd --- /dev/null +++ b/cmake/modules/PolkitQt-1Dist.cmake @@ -0,0 +1,16 @@ +SET(CPACK_PACKAGE_NAME "polkit-qt-1") +SET(CPACK_PACKAGE_VERSION_MAJOR "${POLKITQT-1_VERSION_MAJOR}") +SET(CPACK_PACKAGE_VERSION_MINOR "${POLKITQT-1_VERSION_MINOR}") +SET(CPACK_PACKAGE_VERSION_PATCH "${POLKITQT-1_VERSION_PATCH}") + +set(CPACK_SOURCE_GENERATOR "TBZ2") +set(CPACK_SOURCE_PACKAGE_FILE_NAME "polkit-qt-1-${POLKITQT-1_VERSION_MAJOR}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}") +set(CPACK_SOURCE_IGNORE_FILES "/\\\\.svn/" "/\\\\.git/" "makechangelog") + +set(ARCHIVE_NAME ${CPACK_PACKAGE_NAME}-${POLKITQT-1_VERSION_STRING}) +add_custom_target(dist + COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD + | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +include(CPack) # needs to happen after the above variables are set |
