Error installing rasbee 2 rtc clock on raspberry 5 Trixie

When moving from Debian 12 (bookworm) to Debian 13 (trixie) on my raspberry 5 I could not install the RTC clock from the rasbee 2 . when I tried to install the raspberry-kernel-headers I got:

pi@rasp-home:~ $ sudo apt install i2c-tools build-essential raspberrypi-kernel-headers

Error: Unable to locate package raspberrypi-kernel-headers

pi@rasp-home:~ $ sudo apt install linux-headers-$(uname -r)

linux-headers-6.12.47+rpt-rpi-2712 is already the newest version (1:6.12.47-1+rpt1).

Summary:

Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

and than of course the make file does also not work:

pi@rasp-home:~/raspbee2-rtc-master $ make

checking deb package dependencies…

i2c-tools

build-essential

raspberrypi-kernel-headers

package raspberrypi-kernel-headers not installed, please install via: apt-get install raspberrypi-kernel-headers

make: *** [Makefile:26: check-packages] Error 1

anybody a idee what to do? The deconz application (in a docker). works fine but I want also use the rtc-clock.

Thanks…

Well, albeit the package linux-headers-6.12.47+rpt-rpi-2712 is installed, its checking & asking for the (meta) package raspberrypi-kernel-headers not being installed and suggest to install it, see your outputs …

Description: Header files for the Raspberry Pi Linux kernel
 This package provides the architecture-specific kernel header files for
 the Raspberry Pi Linux kernel, generally used for building out-of-tree
 kernel modules.

[Problem Solved]
The kernel header files are indeed on the system, but are not found by a check in the Makefile, causing the process to stop. By disabling this test in the Makefile (or by removing “exit”) make can continue and the RTC modules are created. The hwclock program is not included by default in Trixie (Debian 13), so you need to install the util-linux-extra package. As a result, the hardware clock (RTC) now works.

The installation instructions for the RTC on Trixie are updated now: