Skip to content

Commit

Permalink
Correct ,deb package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
rerdavies committed Jan 27, 2025
1 parent cd15aad commit 72bc0df
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,17 @@ if(NOT DEFINED ENV{GITHUB_ACTIONS})
add_subdirectory("docs")
endif()

EXECUTE_PROCESS( COMMAND dpkg --print-architecture COMMAND tr -d '\n' OUTPUT_VARIABLE DEBIAN_ARCHITECTURE )


#debian packaging
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Robin E. R. Davies <[email protected]>")
set(CPACK_DEBIAN_FILE_NAME 'nwindows$CMAKE_PACKAGE_MAJOR-$ARCH.deb')
set(CPACK_DEBIAN_FILE_NAME "nwindows_${PROJECT_VERSION}${NWINDOWS_RELEASE_QUALIFIER}_${DEBIAN_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Modern Text User Interface Library for C++")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Modern Text User Interface Library for C++")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "xclip, libicu-dev")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Robin E. R. Davies <[email protected]>")
set(CPACK_DEBIAN_PACKAGE_SECTION "devel")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://rerdavies.github.io/nwindows/")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)

include(CPack)

0 comments on commit 72bc0df

Please sign in to comment.