- 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
66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
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
|
|
}
|