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-.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 }