So, I built the game with josch’s debian/rules file and all works now!
# override disabled by default rpath - we need to find libvcmi.so with it:
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
-DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/vcmi \
-DBIN_DIR=games \
-DFORCE_BUNDLED_FL=OFF
That’s the fix!
edit:
ci here (.deb file download): https://gitlab.com/elk_aide/vcmi/-/jobs/770238209
debin/rules file here: https://gitlab.com/elk_aide/vcmi/-/blob/develop/debian/rules