new error message with package 3.1.1-1

With package version 3.1.1-1 I am seeing new error message in the logs when installing a new kernel resp. updating a kernel:

/usr/lib/kernel/install.d/40-dkms.install: Zeile 4: /../trash/postinst.d/dkms: Datei oder Verzeichnis nicht gefunden

Downgrading the package to previous version 3.0.13-1 removes the error message.

Seems to be related changes coming with dkms 3.1.1

See also this thread in the endeavouros forum: https://forum.endeavouros.com/t/dkms-error/62236

The script 40-dkms.install seems to be odd with absolute path names:

#!/bin/sh

if [ "$1" = "add" ]; then
	/../trash/postinst.d/dkms "$2"
fi

if [ "$1" = "remove" ]; then
	/../trash/prerm.d/dkms "$2"
fi
Edited by Matthias Bodenbinder