cloned the current commit from the lime GitHub repository.
git clone --recursive https://github.com/openfl/lime
lime rebuild lime linux -rpi
updated all haxelib modules
checked version with
lime: 5.1.0 [dev:/home/pi/Development/haxe/dev/lime]
openfl: 5.1.2 [5.1.3]
and build and openfl-sample with:
openfl test linux
This works for me and I have it running from the command line.
It's a bit tricky that lime for raspberry pi can only be built manually like this,
and you have to keep the versions of openfl and lime in sync.
They don't have the same version number and that makes it a bit difficult.
Still it's strange that the install script doesn't work properly because that's version independent.
And I have used it for many sd-cards without problems.