diff options
author | Sebastian Schmelzer | 2011-11-07 12:24:36 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2011-11-07 12:24:36 +0100 |
commit | 07613177eec44a95cde535c29f98204fcf08c9f2 (patch) | |
tree | ce7dcd1d06e380c3c0c44d1d06a106dfae5c532e /src | |
parent | code formating (diff) | |
download | emuchooser-07613177eec44a95cde535c29f98204fcf08c9f2.tar.gz emuchooser-07613177eec44a95cde535c29f98204fcf08c9f2.tar.xz emuchooser-07613177eec44a95cde535c29f98204fcf08c9f2.zip |
cpack package name
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 14cc2a7..088f7c5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -57,6 +57,9 @@ INSTALL(TARGETS emuchooser RUNTIME DESTINATION bin) ### BUILD PACKAGE ############################################################## +execute_process(COMMAND lsb_release -cs OUTPUT_VARIABLE distro_shortname OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE distro_arch OUTPUT_STRIP_TRAILING_WHITESPACE) + set(CPACK_GENERATOR "DEB") set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sebastian Schmelzer <ssc@xss.nu>") #required set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "emuchooser") @@ -66,8 +69,8 @@ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqtcore4") set(CPACK_DEBIAN_PACKAGE_SECTION "misc") set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}") set(CPACK_PACKAGE_NAME "emuchooser") -set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") -set(CPACK_PACKAGE_FILE_NAME "emuchooser_${CPACK_PACKAGE_VERSION}_ubuntu_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${distro_arch}") +set(CPACK_PACKAGE_FILE_NAME "emuchooser_${CPACK_PACKAGE_VERSION}_${distro_shortname}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "emuchooser_${CPACK_PACKAGE_VERSION}") INCLUDE(CPack) |