Haiku packaging: .hpkg script and HaikuPorts recipe template
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run

- 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:
yann64andClaude Opus 5.5 committed 2026-11-29 06:50:47 +01:00
1 parent b757b35709
commit d190a8b5f8
7 files changed
+180 -6

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
SUMMARY="Download Peugeot head unit updates and prepare the USB stick"
DESCRIPTION="OpenPU downloads the firmware and navigation map updates of Peugeot head \
units (NAC, RCC, AIO, Crony) and prepares the installation USB stick: FAT32 formatting, \
license and update files. Downloads resume where they stopped.
It provides a native graphical application and a command-line tool (openpu-cli). \
Independent project, not affiliated with Stellantis or Peugeot."
HOMEPAGE="https://github.com/yann64/openpu"
COPYRIGHT="2026 yann64 and the OpenPU contributors"
LICENSE="MIT"
REVISION="1"
# Template for HaikuPorts (app-misc/openpu/openpu-<version>.recipe): set the file name to the
# released version and CHECKSUM_SHA256 to the sha256sum of the tag archive below.
SOURCE_URI="https://github.com/yann64/openpu/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="0000000000000000000000000000000000000000000000000000000000000000"
SOURCE_DIR="openpu-$portVersion"
ARCHITECTURES="all !x86_gcc2"
PROVIDES="
openpu$secondaryArchSuffix = $portVersion
app:OpenPU = $portVersion
cmd:openpu_cli = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libarchive$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libarchive$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:nlohmann_json
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:mimeset
cmd:msgfmt
cmd:ninja
cmd:rc
cmd:xres
"
BUILD()
{
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$prefix" -DOPENPU_BUILD_TESTS=ON
cmake --build build $jobArgs
}
INSTALL()
{
# apps/OpenPU, bin/openpu-cli, data/locale and the Deskbar link, relative to $prefix.
cmake --install build --strip
}
TEST()
{
build/tests/openpu_tests
}