@@ -131,19 +131,24 @@ install(TARGETS inflection LIBRARY COMPONENT inflection_
131131install (DIRECTORY ${INFLECTION_INCLUDE_ROOT} / TYPE INCLUDE COMPONENT inflection_headers)
132132install (DIRECTORY ${INFLECTION_DATA_ROOT} / TYPE DATA COMPONENT inflection_data)
133133
134-
135-
134+ # ----------------------------------------------------------------------------------------
136135# CPack Configuration for Ubuntu Packaging
136+ #
137+ # To update ICU version:
138+ # 1. Update ICU_VERSION in the GitHub Actions workflow (.github/workflows/create-ubuntu-distribution-packaging.yml)
139+ # 2. Make sure the downloaded ICU binary file matches the filename format
140+ # (e.g., icu4c-78_1-Ubuntu22.04-x64.tgz)
141+ # 3. Update the line below to match the correct ICU dependency in Debian packaging
142+ # ----------------------------------------------------------------------------------------
137143
138144set (CPACK_PACKAGE_NAME "unicode-inflection" )
139145
140146# Apply the current tagged Inflection version to the CPack version.
141147# CPack may inherit a default or cached version, so we explicitly set it here.
142148set (CPACK_PACKAGE_VERSION "${INFLECTION_VERSION} " )
143149
150+ # Extract version components
144151string (REPLACE "." ";" INFLECTION_VERSION_LIST "${INFLECTION_VERSION} " )
145-
146- # Set defaults to avoid list index errors
147152set (CPACK_PACKAGE_VERSION_MAJOR "0" )
148153set (CPACK_PACKAGE_VERSION_MINOR "0" )
149154set (CPACK_PACKAGE_VERSION_PATCH "0" )
@@ -159,6 +164,7 @@ if(_len GREATER 2)
159164 list (GET INFLECTION_VERSION_LIST 2 CPACK_PACKAGE_VERSION_PATCH)
160165endif ()
161166
167+ # Basic package metadata
162168set (CPACK_PACKAGE_VENDOR "Unicode Consortium" )
163169set (CPACK_PACKAGE_CONTACT "https://github.com/unicode-org/inflection" )
164170set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Unicode Inflection Library" )
@@ -171,7 +177,7 @@ set(CPACK_DEBIAN_PACKAGE_SECTION "libs")
171177set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional" )
172178set (CPACK_DEBIAN_PACKAGE_VERSION "${INFLECTION_VERSION} " )
173179
174- # Source package
180+ # Source package config
175181set (CPACK_SOURCE_GENERATOR "TGZ" )
176182set (CPACK_SOURCE_IGNORE_FILES "/build/;/.git/;/.vscode/;/.idea/" )
177183set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME} -${INFLECTION_VERSION} " )
0 commit comments