Haiku packaging: .hpkg script and HaikuPorts recipe template
- tools/haiku-package.sh: release build staged into the package layout (apps/OpenPU, bin/openpu-cli, data/locale, Deskbar link), .PackageInfo with the library requirements, `package create`. Validated with `pkgman install` in the Haiku R1/beta6 VM. - packaging/haiku/openpu.recipe: HaikuPorts recipe template, to be named after the released version with the archive checksum. - The Haiku application is installed in apps/ and finds its translations through BPathFinder (data/locale of its installation location). - Fix: `cmake --install --strip` dropped the application's resources (icon, signature, version); they are attached again after install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
1 parent
b757b35709
commit
d190a8b5f8
7 files changed
+180
-6
No files matched your search
+6
-1
@@ -1,6 +1,11 @@
|
||||
# Translations (gettext). Source strings are English; add a language by adding <lang>.po and
|
||||
# listing it in LINGUAS.
|
||||
include(GNUInstallDirs)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
|
||||
set(OPENPU_INSTALL_LOCALEDIR data/locale) # Haiku package layout
|
||||
else()
|
||||
set(OPENPU_INSTALL_LOCALEDIR ${CMAKE_INSTALL_LOCALEDIR})
|
||||
endif()
|
||||
find_package(Gettext)
|
||||
if(NOT GETTEXT_FOUND)
|
||||
message(WARNING "gettext (msgfmt) not found: translations are not built")
|
||||
@@ -14,7 +19,7 @@ foreach(lang IN LISTS OPENPU_LINGUAS)
|
||||
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${mo} ${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po
|
||||
DEPENDS ${lang}.po)
|
||||
list(APPEND OPENPU_MO_FILES ${mo})
|
||||
install(FILES ${mo} DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${lang}/LC_MESSAGES)
|
||||
install(FILES ${mo} DESTINATION ${OPENPU_INSTALL_LOCALEDIR}/${lang}/LC_MESSAGES)
|
||||
endforeach()
|
||||
add_custom_target(translations ALL DEPENDS ${OPENPU_MO_FILES})
|
||||
|
||||
|
||||
Reference in new issue
Block a user